Package DE_EPAGES::Presentation::API::TLE::PermissionHandler
Functions
HASROLE
Determines, whether the user has a specific role for an object.
Syntax |
#HASROLE(#RoleClass, #RoleName) #HASROLE(#RoleClass, #RoleName, #Object) #HASROLE(#RoleClass, #RoleName, #Object, #User) |
Example |
#IF( #HASROLE("Object", "View", #Shop.Object, #SESSION.User.Object) ) .. #ENDIF |
Input |
|
Return |
|
ISACTIONALLOWED
Determines whether an action is allowed for the given object and user.
Syntax |
#ISACTIONALLOWED(#ActionName) #ISACTIONALLOWED(#ActionName, #Object) #ISACTIONALLOWED(#ActionName, #Object, #User) |
Example |
#IF( #ISACTIONALLOWED("View", #Shop.Object, #SESSION.User.Object) ) ... #ENDIF |
Input |
|
Return |
|