diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-10-09 18:51:34 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-10-09 19:00:30 -0400 |
commit | ea13b80f93469d6d7790e02bfc4983918daa0315 (patch) | |
tree | 412de98c801145db75996164dd8d4b89d18e95db /src/controllers | |
parent | c6ba22f591881daae4a2f3abf2990b427a3ad716 (diff) |
Fix bug in Users::getIndexAttribs() where auth_name was being omitted.concurrent-editing
Diffstat (limited to 'src/controllers')
-rw-r--r-- | src/controllers/Users.class.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/controllers/Users.class.php b/src/controllers/Users.class.php index dbd5120..447a70f 100644 --- a/src/controllers/Users.class.php +++ b/src/controllers/Users.class.php @@ -342,8 +342,8 @@ class Users extends Controller { $user = Auth::getObj(Login::isLoggedIn()); $attribs = array(); + $attribs[] = $this->attrib('auth_uid', 'UID'); if ($user->isUser()) { - $attribs[] = $this->attrib('auth_uid', 'UID'); $attribs[] = $this->attrib('auth_user', 'Active', 'bool'); if ($user->isAdmin()) { $attribs[] = $this->attrib('auth_admin', 'Admin', 'bool'); @@ -354,10 +354,9 @@ class Users extends Controller { $attribs[] = $this->attrib('hsclass','Class of'); $attribs[] = $this->attrib('phone','Phone number'); $attribs[] = $this->attrib('email','Email'); - } else { - $attribs[] = $this->attrib('auth_uid', 'UID'); - $attribs[] = $this->attrib('auth_name', 'Username'); } + $attribs[] = $this->attrib('auth_name', 'Username'); + return $attribs; } |