From f429aff5bf067dcc6bbc14367e8499022a548625 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <gohr@cosmocode.de>
Date: Tue, 30 Oct 2018 15:16:06 +0100
Subject: [PATCH] add reerence to the actual plugin to ADMINPLUGIN_ACCESS_CHECK

Otherwise it's a bit ahrd to decide if access should be granted ;-)
---
 lib/plugins/admin.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/plugins/admin.php b/lib/plugins/admin.php
index 770fe582f..59c6377e7 100644
--- a/lib/plugins/admin.php
+++ b/lib/plugins/admin.php
@@ -80,6 +80,7 @@ class DokuWiki_Admin_Plugin extends DokuWiki_Plugin {
     public function isAccessibleByCurrentUser() {
         global $INFO;
 
+        $data['instance'] = $this;
         $data['hasAccess'] = false;
 
         $event = new Doku_Event('ADMINPLUGIN_ACCESS_CHECK', $data);
-- 
GitLab