summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorSimon Rettberg2015-03-02 18:42:52 +0100
committerSimon Rettberg2015-03-02 18:42:52 +0100
commit9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced (patch)
tree3956bf015bf862ab46380fbfaddf0e0fa631eb85 /inc
parentInitial Commit (diff)
downloadbwlp-webadmin-9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced.tar.gz
bwlp-webadmin-9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced.tar.xz
bwlp-webadmin-9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced.zip
Second Commit
Diffstat (limited to 'inc')
-rw-r--r--inc/user.inc.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/inc/user.inc.php b/inc/user.inc.php
index 30630d4..f023ae7 100644
--- a/inc/user.inc.php
+++ b/inc/user.inc.php
@@ -28,6 +28,11 @@ class User
return self::$user !== false && self::$isShib === false;
}
+ public static function getData()
+ {
+ return self::$user;
+ }
+
public static function getName()
{
if (!self::isLoggedIn())
@@ -60,6 +65,14 @@ class User
return $org['organizationid'];
}
+ public static function getOrganizationName()
+ {
+ $org = self::getOrganization();
+ if (!isset($org['name']))
+ return false;
+ return $org['name'];
+ }
+
public static function getRemoteOrganizationId()
{
if (empty(self::$user['organization']))