summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/controllers/Users.class.php7
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;
}