diff options
Diffstat (limited to '')
| -rw-r--r-- | app/model/common.mod.php | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/app/model/common.mod.php b/app/model/common.mod.php index d4270d8..e52230d 100644 --- a/app/model/common.mod.php +++ b/app/model/common.mod.php @@ -4,6 +4,19 @@ require_once "model/master.mod.php";  class CommonModel extends MasterModel  { +    /* +     * Get the glyphicon to use for the logged in user (user or admin) +     */ +    function getCurrentUserGlyphicon() +    { +        if (!$this->getCurrentUser()) +            return ""; + +        if ($this->getCurrentUser()->admin == 1) +            return "glyphicon glyphicon-sunglasses"; +        else +            return "glyphicon glyphicon-user"; +    }  }  ?>  | 
