TolliumUser::UpdateGrant (open)
Grants the specified object right on the specified object to another user. Throws on failure.
Syntax
LOADLIB "mod::tollium/lib/users.whlib";
MACRO UpdateGrant(STRING action, STRING rightname, INTEGER objectid, OBJECT grantee, RECORD options)Parameters
STRING actiongrant/update/revoke. update does not grant a nonexisting right
STRING rightnameRight to grant
INTEGER objectidObject to grant the right on (0 for all objects. always set to 0 for global rights!)
OBJECT granteeUser to grant the right to
RECORD optionsOptions
BOOLEAN allowselfassignmentIf TRUE, skip rights validation if this is a self assignment
STRING commentIF set, update the comment
BOOLEAN withgrantoptionIf set, update 'withgrantoption'