summaryrefslogtreecommitdiffstats
path: root/app/class/user.class.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/class/user.class.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/class/user.class.php b/app/class/user.class.php
index 7d8519e..f1f7ff1 100644
--- a/app/class/user.class.php
+++ b/app/class/user.class.php
@@ -160,6 +160,17 @@ class User extends Object
return $this->name;
}
+
+ /*
+ * Get the glyphicon to use for this user
+ */
+ function getGlyphicon()
+ {
+ if ($this->admin)
+ return "glyphicon glyphicon-sunglasses";
+
+ return "glyphicon glyphicon-user";
+ }
}
?>