Elephant security system is used to isolate contents based on user granted permissions. The content is generated at server side based on this security system.
isInRole
methodElephant provides isInRole
convenience method to check user assigned points. The method takes as string parameter with a permission checking syntax. The parameter are the ORed permissions to be checked, separated by |.
Suppose a sample user assigned to Privileged Customers social group. This social group grants the DossierParticipant role, which carries dossier=list,show permissions.
Check type |
Syntax |
Example |
Permissions |
|
dossier:list |
Roles |
|
#DossierParticipant:on |
Syndications |
|
@customer:on |
Fuzzy roles |
|
@worker:is |
When more than one check, they can be ORed: dossier:list|@customer:on
.