DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

devel:event:auth_acl_check

AUTH_ACL_CHECK

description:
Wraps around checking the ACLs for a user on a given page or namespace
defaultaction:
The standard DokuWiki ACL checking mechanism
preventable:
yes
added:
2014-01-19

This event is signalled by auth_aclcheck() in inc/auth.php when the ACLs for a page or namespace are checked, handlers can use it to modify the result in the AFTER action or implement their own ACL checking in the BEFORE action.

Passed Data

The passed Doku_Event object has the fields: $data and $result.

The following data is available in the $event->data array:

array(
   id => string,                        // the page or namespace that is checked
   user => string,                      // the user the ACLs apply to
   groups => array(string, string, ...) // the groups above user is member of
)

BEFORE handlers should return one of the AUTH_* constants and prevent the default action auth_aclcheck_cb(). AFTER handlers can check the default action's result in the $event->result field and modify it there.

Plugins handling this event

The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.

  • FIXME

See also

devel/event/auth_acl_check.txt · Last modified: 2014-12-18 00:24 by Klap-in