What is an RSS Feed?its RSS FeedAll Feeds

Home . Ministries . ITS . CMSOverview . CMSSecurityRelease

Login


EducationMinisterialFinancial ServicesCamp MiVoden

SecurityRelease Wrapper

imageContent can be conditionally displayed based on if the current user (session) is in the appropriate role. Optionally, a message can be displayed if they are not in the appropriate role.

Example: /playground/SecurityWrapper

imageUsage: Insert the Security Wrapper placeholder, set the attributes to control who can see the content, and place your protected content inside the red box (wrapper).

Edit the style by doubleclick the top left of the red style OR right-click on the red box, choose tag list, choose the div tag, and choose edit

The Div has a class of security.

The Div has Custom attributes:

  • SecurityMessage : Optional Message if the event the session is not in the security role. Can contain HTML
  • SecurityRoles : comma separated list of roles the session must be in if they are to see the wrapped content.

The SecurityRoles attribute supports the following formats in the comma separated list:

  • ( ) service roles
    example: Global Administrator Role(42)
  • { } system roles (1 user, 2 admin, 3 edit, 4manage security, 6 custom role)
    example: Admin in at least one role {2}
  • [ ] user ID OR [webuser] for ANYONE logged in.
    example: Kevin Helbley [387]
    example: Webuser Logged in [webuser]
  • < > search specific in session variable
    searching session string for using holding list of services and roles in form ,servicerole.systemrole.Web_service_ID,
    example: is admin anywhere? <.2.>
    example:admin in superuser service <.2.42,>

The SecurityRoles attribute does not require ANYTHING but the content inside braces. Commas and descriptive text are purely optional, but recommended for clarity purposes.

By Any person a member of the Super Users Administrative Group (42) Automatically is approved for ALL SECURITY CHECKS, EVEN if the security checks are malformed and invalid. Example: some trash role(see, a bad @*&number1) would ONLY have a Global Administrator able to see the content at render.

use the following style of expressing SecurityRoles:

  • webuser [webuser]
  • presidential editor (4)
  • global administrator (42)
  • admin anywhere <.2.>

imageThis demonstrates the render with the presidents secretary logged in.

<div class="security" SecurityMessage="&lt;a href=&quot;/user/login&quot;&gt;Login&lt;/a&gt; to see all content - you're not a [webuser]" SecurityRoles="[webuser], List roles by title here comma seperate">
<p>This is wrapped - and visible if you are a [webuser]</p>
<!--security--></div>

<p> </p>

<div class="security" SecurityMessage="&lt;a href=&quot;/user/login&quot;&gt;Login&lt;/a&gt; to see all content - you are not an editor for playground - Edit{3}" SecurityRoles="Edit{3}">

<p>This is wrapped - and visible if you have edit rights: Edit{3}</p>
<!--security--></div>

<p> </p>

<div class="security" SecurityMessage="&lt;a href=&quot;/user/login&quot;&gt;Login&lt;/a&gt; to see all content - you're not a UCC Website Administrator(42)" SecurityRoles="UCC Website Administrator(42)">

<p>This is wrapped - and visible if you're a UCC Website Administrator(42)</p>
<!--security--></div>

Wrapper nesting example