#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.

  1. [(#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
  1. [(#AUTORISER{voir,article,#ID_ARTICLE}) I am authorised to view the article]
  2. [(#AUTORISER{modifier,article,#ID_ARTICLE}) I am authorised to modify the article]

Download

Author Mark Baber Published : Updated : 13/06/10

Translations : English, Español, français