Package DE_EPAGES::Presentation::API::TLE::PermissionHandler
This tle handler provides permission functionalities for the tle processor. This handler supports the following tle functions:
- ISACTIONALLOWED - checks if the user has a particular permission.
Functions
HASROLE
Determines, whether the user has a specific role for an object.
Syntax |
$Value = $Handler->HASROLE( $Processor, $raParameter ); #HASROLE(#RoleClass, #RoleName, #Object, #User) |
Example |
#HASROLE("Object", "View") #HASROLE("Object", "View", #Shop.Object) #HASROLE("Object", "View", #Shop.Object, #SESSION.User.Object) |
Input |
|
Return |
|
ISACTIONALLOWED
Determines, whether an action is allowed for the given object and user.
Syntax |
$Value = $Handler->ISACTIONALLOWED( $Processor, $raParameter ); #ISACTIONALLOWED(#ActionName, #Object, #User) |
Example |
#ISACTIONALLOWED("View") #ISACTIONALLOWED("View", #Shop.Object) #ISACTIONALLOWED("View", #Shop.Object, #SESSION.User.Object) |
Input |
|
Return |
|