TolliumUser::GrantRightTo (open)

Grants the specified global right to another user. Throws on failure.

Syntax

LOADLIB "mod::tollium/lib/users.whlib";

MACRO GrantRightTo(STRING rightname, OBJECT grantee, BOOLEAN withgrantoption, BOOLEAN allowselfassignment, STRING comment)

Parameters

STRING rightname

Right to grant

OBJECT grantee

User object to grant the right to.

BOOLEAN withgrantoption

Whether to grant the right with the right to grant it to other users

BOOLEAN allowselfassignment

If TRUE, skip rights validation if this is a self assignment

STRING comment

Comment for this grant