GetGrantedAuthObjects (open)

List authobjects which have a specific right

Syntax

LOADLIB "mod::system/lib/userrights.whlib";

INTEGER ARRAY FUNCTION GetGrantedAuthObjects(STRING rightname, INTEGER obj, RECORD options)

Parameters

STRING rightname

Right to look up

INTEGER obj

Object to which the right should apply (if the right supports objects)

RECORD options

Options

BOOLEAN anyobject

Match any object (ie ignores 'obj' for rights that require an object)

INTEGER ARRAY dontexpandauthobjects

Do not return or expand these authobjects

BOOLEAN expandroles

Expand role auth objects and also return all users inside the role (defaults to TRUE)

BOOLEAN inherited

Also look for grants applied to higher levels, if the objecttype supports parent/child relations (defaults to TRUE)

Return value

INTEGER ARRAY

authobjectids which have the requested grant