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.

Our Privacy Policy

devel:event:adminplugin_access_check

ADMINPLUGIN_ACCESS_CHECK

Description:
Allows to intercept and change the access to admin plugins
DefaultAction:
grant access based on admin/manager status
Preventable:
yes
Added:
2018-12-10

This event is signalled by isAccessibleByCurrentUser() in lib/plugins/admin.php when the access to an admin plugin is checked, handlers can use it to let non-admin/non-managers access an Admin Plugin.

Passed Data

The passed $data is an associative array with two keys:

  • $data['instance'] is a reference to the instantiated admin plugin in question
  • $data['hasAccess'] this is what you may want to override. true grants access to the plugin, false denies it. This is false in the BEFORE handler. In the AFTER handler it is set to the result of the normal amdin/manager check.

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/adminplugin_access_check.txt · Last modified: 2018-12-10 11:39 by andi