Lines Matching refs:event
23 public function handleAccess(\Doku_Event $event) argument
25 if ($event->data['instance'] instanceof \admin_plugin_usermanager) {
26 $event->data['hasAccess'] = auth_ismanager();
38 public function handlePermissions(\Doku_Event $event) argument
44 if (!auth_ismanager()) return $this->deny($event);
46 $modUser = $event->data['params'][0];
51 $this->checkModUser($user, $event);
54 $this->checkModUser($modUser, $event);
67 protected function checkModUser($modUser, \Doku_Event $event) argument
74 … if ($existingUser && auth_isadmin($modUser, $existingUser['grps'])) return $this->deny($event);
78 if ($event->data['type'] === 'create') {
79 $groups = $event->data['params'][4];
80 } elseif ($event->data['type'] === 'modify') {
81 $groups = $event->data['params'][1]['grps'];
94 return $this->deny($event);
106 protected function deny(\Doku_Event $event) argument
108 $event->preventDefault();