Copyright 2009-2016 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
/** */ public function disabled() { global $prefs, $registry; $pushed = $registry->pushApp('ingo'); $disabled = array(); if ($prefs->isLocked('blacklist')) { $disabled[] = 'blacklistFrom'; } if ($prefs->isLocked('whitelist')) { $disabled[] = 'whitelistFrom'; } if ($prefs->isLocked('vacation')) { $disabled[] = 'setVacation'; $disabled[] = 'disableVacation'; } if ($pushed) { $registry->popApp(); } return array_merge(parent::disabled(), $disabled); }
/** */ public function disabled() { return array_merge(parent::disabled(), $GLOBALS['registry']->isAdmin() ? array('removeUser', 'userList') : array()); }