WRDAuthPlugin::RequireRightOn (open)

Verify that the user has the specified right on a specific object. Let the user log in if he isn't yet

Syntax

LOADLIB "mod::wrd/lib/internal/auth/webdesignplugin.whlib";

BOOLEAN FUNCTION RequireRightOn(STRING right, INTEGER obj)

Parameters

STRING right

Right to check

INTEGER obj

Object the user needs to have the right on

Return value

BOOLEAN

False if the user does not have privileges (but is logged in). True if the user has teh privileges