Changes

Jump to navigation Jump to search
8 bytes removed ,  14:47, 19 January 2018
Functions that are marked with {{Code|%perm:check}} are so-called ''Security Functions''. These functions will be invoked before the actually requested function will be evaluated. Two arguments can be specified with the annotation:
#. * A path can be specified as first argument: ** The security function will only be called if the path of the client request starts with the specified path. ** In contrast to RESTXQ, all subordinate paths will be accepted as well. ** If no path argument is specified, {{Code|/}} is assigned instead.#. * A variable name can be defined as second argument. A map with the following keys will be bound to that variable: ** {{Code|allow}}: Permission strings attached to the requested function. ** {{Code|path}}: Original path of the client request. ** {{Code|method}}: Method of the client request ({{Code|GET}}, {{Code|POST}}, …).
An example:
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu