Package DE_EPAGES::Presentation::API::TLE::PermissionHandler
Functions
CanAction
Returns true if the given Action is available for that object, considering the inheritance chain of the object
Syntax |
#CanAction(#Object, #ActionName ) |
Example |
#IF(#CanAction( #Object, "MBO-ViewSettings")) ... #ENDIF |
Input |
|
Return |
|
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 |
|