Difference between revisions of "Role Permits"

From SocialStack
(Created page with "Role permits are a mechanism which allow any content to be visible based on role. This is most frequently used by pages to make multiple variations of a page. The page display...")
 
Line 1: Line 1:
Role permits are a mechanism which allow any content to be visible based on role. This is most frequently used by pages to make multiple variations of a page. The page displayed to the user is ultimately the one which the permission system selected for them.
Role permits are a mechanism which allow any content to be visible based on role. This is most frequently used by pages to make multiple variations of a page. The page displayed to the user is ultimately the one which the permission system selected for them.


Role permits are not active for content by default. You must make use of them in your [[permission rules|Permissions]] with "HasRolePermit()". This also means you can use them as part of a more complex permission rule, or invert it if you want your list of roles to represent *excluded* roles:
Role permits are not active for content by default. You must make use of them in your [[Permissions|permission rules]] with "HasRolePermit()". This also means you can use them as part of a more complex permission rule, or invert it if you want your list of roles to represent *excluded* roles:


<syntaxhighlight lang="sql">
<syntaxhighlight lang="sql">
!HasRolePermit()
!HasRolePermit()
</syntaxhighlight>
</syntaxhighlight>

Revision as of 14:03, 1 February 2024

Role permits are a mechanism which allow any content to be visible based on role. This is most frequently used by pages to make multiple variations of a page. The page displayed to the user is ultimately the one which the permission system selected for them.

Role permits are not active for content by default. You must make use of them in your permission rules with "HasRolePermit()". This also means you can use them as part of a more complex permission rule, or invert it if you want your list of roles to represent *excluded* roles:

!HasRolePermit()