#AUTORISER

#AUTORISER is used to check access authorisations to particular content in order to tailor specific display for certain visitors. A specific chapter (Authorisations) has been dedicated just to this topic.

[(#AUTORISER{action,objet,identifier}) I am authorised ]

The existence of this tag, as with the #SESSION tag, generates a different cache entry for every identified site visitor, and another cache entry for unauthenticated visitors combined.

Example

Check if a visitor has the right

to view a particular article

to modify a particular article

[(#AUTORISER{voir,article,#ID_ARTICLE}) I am authorised to view the article][(#AUTORISER{modifier,article,#ID_ARTICLE}) I am authorised to modify the article]