TolliumUser::GrantRightToOn (open)

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

Syntax

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

MACRO GrantRightToOn(STRING rightname, OBJECT grantee, INTEGER objectid, BOOLEAN withgrantoption, BOOLEAN allowselfassignment, STRING comment)

Parameters

STRING rightname

Right to grant

OBJECT grantee

User to grant the right to

INTEGER objectid

Object to grant the right on (0 for all objects)

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