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 rightnameRight to look up
INTEGER objObject to which the right should apply (if the right supports objects)
RECORD optionsOptions
BOOLEAN anyobjectMatch any object (ie ignores 'obj' for rights that require an object)
INTEGER ARRAY dontexpandauthobjectsDo not return or expand these authobjects
BOOLEAN expandrolesExpand role auth objects and also return all users inside the role (defaults to TRUE)
BOOLEAN inheritedAlso look for grants applied to higher levels, if the objecttype supports parent/child relations (defaults to TRUE)
Return value
INTEGER ARRAYauthobjectids which have the requested grant