ApplyRuleTester::HasRequiredRight (open)

Test whether the user has the requested right

Syntax

LOADLIB "mod::publisher/lib/internal/siteprofiles/reader.whlib";

BOOLEAN FUNCTION HasRequiredRight(OBJECT user, STRING rightname)

Parameters

OBJECT user
STRING rightname

Right to check. Must either be granted globally or for system:fs_fullaccess/system:fs_browse, on the fsobject or any of its parents

Return value

BOOLEAN

True if the user has the right, or if rightname is empty