RoxenCMS 5.4Web Developer ManualIf Tags

   

<else>
<elseif>
<false>
<if>
<if ac-identity-exists>
<if ac-verify-password>
<if accept>
<if access-path>
<if client>
<if clientvar>
<if config>
<if cookie>
<if date>
<if defined>
<if domain>
<if exists>
<if expr>
<if false>
<if group>
<if internal-exists>
<if ip>
<if kerberos-auth>
<if language>
<if match>
<if Match>
<if module>
<if poll-voted>
<if ppoint>
<if pragma>
<if prestate>
<if referrer>
<if sb-user-op>
<if scope>
<if sizeof>
<if supports>
<if time>
<if true>
<if type-from-data>
<if type-from-filename>
<if user>
<if variable>
<if Variable>
<if variable-exists>
<then>
<true>

<if access-path></if>

Provided by module: CMS: Tags

Test what access a user has to a directory or file protection point.


Attributes

access-path="path"

The protection point to test. If there is no protection point on the given path, the path is searched towards the root for the controlling protection point.


identity="{handle, id}"

The identity to check the permission for. If omitted, the currently logged on user is used.


none

The check will be true if the user has no permission to the protection point.


read

The check will be true if the user has read permission to the protection point.


write

The check will be true if the user has write permission to the protection point.

Note that the none, read and write attributes can be combined. <if access-path='/foo' read='' write=''/> could be used to give access to everyone that has either read or write access to the protection point /foo.