From f8cc712e2ad522d0bd56b9ba3983cd42abf664ad Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 3 Dec 2006 14:41:04 +0100 Subject: manager user/group This patch adds support for a manager option as suggested in http://www.freelists.org/archives/dokuwiki/11-2006/msg00314.html darcs-hash:20061203134104-7ad00-72ff6422bbb4f79be325c7e77255e1eee32d0f6b.gz --- lib/plugins/admin.php | 44 +++++++++++++++++++++++--------------------- 1 file changed, 23 insertions(+), 21 deletions(-) (limited to 'lib/plugins/admin.php') diff --git a/lib/plugins/admin.php b/lib/plugins/admin.php index 0cf12ad93..22867a93d 100644 --- a/lib/plugins/admin.php +++ b/lib/plugins/admin.php @@ -1,7 +1,7 @@ */ @@ -17,27 +17,29 @@ require_once(DOKU_PLUGIN.'base.php'); */ class DokuWiki_Admin_Plugin extends DokuWiki_Plugin { - function getMenuText($language) { - $menutext = $this->getLang('menu'); - if (!$menutext) { - $info = $this->getInfo(); - $menutext = $info['name'].' ...'; - } - return $menutext; - } + function getMenuText($language) { + $menutext = $this->getLang('menu'); + if (!$menutext) { + $info = $this->getInfo(); + $menutext = $info['name'].' ...'; + } + return $menutext; + } - function getMenuSort() { - return 1000; - } + function getMenuSort() { + return 1000; + } - function handle() { - trigger_error('handle() not implemented in '.get_class($this), E_USER_WARNING); - } + function handle() { + trigger_error('handle() not implemented in '.get_class($this), E_USER_WARNING); + } - function html() { - trigger_error('html() not implemented in '.get_class($this), E_USER_WARNING); - } - - + function html() { + trigger_error('html() not implemented in '.get_class($this), E_USER_WARNING); + } + + function forAdminOnly() { + return true; + } } -//Setup VIM: ex: et ts=4 enc=utf-8 : \ No newline at end of file +//Setup VIM: ex: et ts=4 enc=utf-8 : -- cgit v1.2.3