summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
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']))