You are viewing an old version of this page. View the current version.
Compare with Current View Page History
Version 1 Current »
Non-static operation.
This operation returns if the current user or specified role is allowed to perform the provided action(s) on the provided resource.
isAuthorized( resourceId : String, action : String ) : Boolean
isAuthorized( resourceId : String, actions : String[] ) : Boolean
isAuthorized( resourceId : String, action : String, role : String ) : Boolean
isAuthorized( resourceId : String, action : String, roles : String[] ) : Boolean
isAuthorized( resourceId : String, actions : String[], role : String ) : Boolean
isAuthorized( resourceId : String, actions : String[], roles : String[] ) : Boolean
Specify a list of actions to check against.
The operation returns true if one of the actions has valid permissions (OR-operation).
Specify a list of roles to check against (instead of current user).
The operation returns true if one of the roles has valid permissions (OR-operation).