Révisions :
« autorisations:description : couteauprive - en »

Révisions

# Date Auteur
Février 2014 PatV
Juin 2013 Benitron
Avril 2013 -1

Texte de la chaine de langue

This tool is restricted to webmasters site. To create a SPIP? authorization, simply create the appropriate functions. The example below allows the use of the function autoriser('troller','doc') or the tag #AUTORISER{troller, doc} :

Explanation :

  • $faire : action asked (’ (’ edit’, ’publish ’, ’, ’publish ’, ...)
  • $type : object type on which you apply an action (’ (’ article’, ’author ’, ’, ’author ’, ...)
  • $id : the identifier of the object you wish to operate
  • $qui : id_auteur asking the permission (or empty for a author autor being processed)
  • $opt : options array Table option , usually empty

After recovery / contextual valorisation of default values, SPIP tries to run the best permission declared and will seek, in order autoriser_type_faire(), autoriser_type(), autoriser_faire(), and then autoriser_defaut().

@puce@ Use this tool to define aliases simple permissions.
The syntax is : "<code « <code > who : make type id = alias " [1]
@puce@ Configure logging options using the tool « . ». [2]

Traducteur(s)
6949, 4652
Statut
NEW
Notes

[1%autorisations_alias%

[2%autorisations_debug%