auth:hasPermission

User/permission tag to check the user permissions, the permissions must be set as a comma separated list. Class returns TRUE if the user has the given permission and FALSE otherwise if an 'id' was given as an argument. If the permissions are set for the given user then the body content will be rendered, otherwise the body content will not be rendered.

  <auth:hasPermission
        permissions="CONTENTADD"
        sectionId="2201">
    User has permission
  </auth:hasPermission>
Syntax
<auth:hasPermission
   id="..."?
   permissions="..."
   section="..."?
   sectionId="..."?
   user="..."?
   userId="..."?>
   ...
</auth:hasPermission>
Attributes
id, no runtime expressions

The name of the scripting variable.

permissions, mandatory

The name of the permissions to check the user has. May be a list of comma separated permissions.

user

The name of the scripting-variable where to get the user from. This can be a UserData, PresentationPerson or Person object. Default it uses the logged in user.

userId

Id from the escenic user. Default it uses the logged in user.

section

The name of the scripting-variable where to get the section form. This can be a PresentationSection or Section object. Default it uses the section your in.

sectionId

The id from the section you want to check. Default it uses the section your in.