/** @inheritdoc */ public function cleanGroup($group) { /** @var DokuWiki_Auth_Plugin $plugin */ foreach ($this->plugins as $plugin) { if ($plugin->canDo('getGroups')) { if (in_array($group, $plugin->retrieveGroups())) { return $plugin->cleanGroup($group); } } } return parent::cleanGroup($group); }
/** * Sanitize a given groupname [OPTIONAL] * Forwards the result of the auth plugin of the logged in user or * returns false * * @author Philipp Neuser <*****@*****.**> * @author Christian Marg <*****@*****.**> * @param string $group groupname * @return string the cleaned groupname */ public function cleanGroup($group) { global $ACT; if ($ACT == "admin" && $_REQUEST['page'] == "usermanager") { if (!is_null($this->usermanager_auth)) { return $this->usermanager_auth->cleanGroup($group); } } else { if (!is_null($this->chained_auth)) { return $this->chained_auth->cleanGroup($group); } } return parent::cleanGroup($group); }