Role Permits

From SocialStack
Revision as of 14:02, 1 February 2024 by 2a02:c7c:c43f:c600:8d:14c6:5343:39ff (talk) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 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:

!HasRolePermit()