Lines Matching refs:auth

29     protected $auth;        // auth object  variable in admin_plugin_usermanager
47 global $auth;
51 if (!$auth instanceof AuthPlugin) {
53 } elseif (!$auth->canDo('getUsers')) {
57 $this->auth = &$auth;
75 if (!is_null($this->auth))
123 if (is_null($this->auth)) return false;
170 …$this->users_total = $this->auth->canDo('getUserCount') ? $this->auth->getUserCount($this->filter)…
201 if (is_null($this->auth)) {
206 $user_list = $this->auth->retrieveUsers($this->start, $this->pagesize, $this->filter);
209 $delete_disable = $this->auth->canDo('delUser') ? '' : 'disabled="disabled"';
211 $editable = $this->auth->canDo('UserMod');
226 $this->auth->getUserCount()
232 $allUserTotal = $this->auth->getUserCount();
324 if ($this->auth->canDo('addUser')) {
335 if ($this->edit_user && $this->auth->canDo('UserMod')) {
346 if ($this->auth->canDo('addUser')) {
362 global $auth;
363 if (!$auth instanceof AuthPlugin || !$auth->canDo('getUsers')) {
411 $this->auth->canDo("modLogin"),
420 $this->auth->canDo("modPass"),
429 $this->auth->canDo("modPass"),
438 $this->auth->canDo("modName"),
447 $this->auth->canDo("modMail"),
456 $this->auth->canDo("modGroups"),
461 if ($this->auth->canDo("modPass")) {
646 if (!$this->auth->canDo('addUser')) return false;
651 if ($this->auth->canDo('modPass')) {
671 if ($this->auth->canDo('modName')) {
683 if ($this->auth->canDo('modMail')) {
695 if ($ok = $this->auth->triggerUserMod('create', [$user, $pass, $name, $mail, $grps])) {
719 if (!$this->auth->canDo('delUser')) return false;
730 $count = $this->auth->triggerUserMod('delete', [$selected]);
755 if (!$this->auth->canDo('UserMod')) return false;
756 $user = $this->auth->cleanUser(preg_replace('/.*[:\/]/', '', $param));
757 $userdata = $this->auth->getUserData($user);
781 if (!$this->auth->canDo('UserMod')) return false;
784 $olduser = $this->auth->cleanUser(preg_replace('/.*[:\/]/', '', $INPUT->str('userid_old')));
785 $oldinfo = $this->auth->getUserData($olduser);
793 if (!$this->auth->canDo('modLogin')) { // sanity check, shouldn't be possible
799 if ($this->auth->getUserData($newuser)) {
806 if ($this->auth->canDo('modPass')) {
819 if (!empty($newname) && $this->auth->canDo('modName') && $newname != $oldinfo['name']) {
822 if (!empty($newmail) && $this->auth->canDo('modMail') && $newmail != $oldinfo['mail']) {
825 if (!empty($newgrps) && $this->auth->canDo('modGroups') && $newgrps != $oldinfo['grps']) {
829 if ($ok = $this->auth->triggerUserMod('modify', [$olduser, $changes])) {
908 global $auth;
912 $user[0] = ($clean) ? $auth->cleanUser($INPUT->str('userid')) : $INPUT->str('userid');
921 $user[4] = array_map($auth->cleanGroup(...), $user[4]);
1022 $user_list = $this->auth->retrieveUsers(0, 0, $this->filter);
1064 if (!$this->auth->canDo('addUser')) return false;
1162 if (!($this->auth->canDo('modName') xor empty($name))) {
1167 if ($this->auth->canDo('modMail')) {
1191 if (!$this->auth->triggerUserMod('create', $user)) {