TolliumUser::HasRightOn (open)

Returns whether this user has an object-based right on an object.

Syntax

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

BOOLEAN FUNCTION HasRightOn(STRING rightname, INTEGER objectid)

Parameters

STRING rightname

Name of the right

INTEGER objectid

Id of the object, 0 for a global grant on all objects.

Return value

BOOLEAN

TRUE if the user has the right, FALSE if not. Throws on error.