Changes

Jump to navigation Jump to search
141 bytes added ,  19:42, 18 January 2018
==Checking Permissions==
Functions that are marked with {{Code|%perm:check}} are so-called ''Security Functions''. These functions will be invoked before the actual target actually requested function will be evaluated. Two arguments can be specified with the annotation:
* A path argument can be specified with the first argument. Such a The security function will only be called if the request path starts with the given stringpath. In contrast to RESTXQ, all subordinate paths are included herewill be accepted as well. If no path argument is specified, {{Code|/}} is assigned instead.
* With the second argument, various permission-specific information can be bound to a map.
</pre>
NotesSome notes:
* If several permission functions are available that match the user request, all of them will be called one by one. The function with the shorted path argument will be called first. Accordingly, in the example, if the {{Code|/main/admin}} URL is requested, all three security functions will be run.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu