summaryrefslogtreecommitdiff
path: root/lib/Kolab/DAV/Auth/HTTPBasic.php
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-02-27 20:23:04 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-02-27 20:23:04 (GMT)
commitbb251d58147a4486b4824facac265e346303e043 (patch)
tree76011f87db23d1ee34085ac70cee53157675005c /lib/Kolab/DAV/Auth/HTTPBasic.php
parentf780011a58d463a2980bf1b5de5d8161c213fdf2 (diff)
downloadiRony-bb251d58147a4486b4824facac265e346303e043.tar.gz
Enable ACL and service detection to work with Apple iCal
Diffstat (limited to 'lib/Kolab/DAV/Auth/HTTPBasic.php')
-rw-r--r--lib/Kolab/DAV/Auth/HTTPBasic.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/Kolab/DAV/Auth/HTTPBasic.php b/lib/Kolab/DAV/Auth/HTTPBasic.php
index 23a7ac0..036d54f 100644
--- a/lib/Kolab/DAV/Auth/HTTPBasic.php
+++ b/lib/Kolab/DAV/Auth/HTTPBasic.php
@@ -34,7 +34,7 @@ use Kolab\Utils\CacheAPC;
class HTTPBasic extends \Sabre\DAV\Auth\Backend\AbstractBasic
{
// Make the current user name availabel to all classes
- public static $current_user;
+ public static $current_user = null;
/**
* Validates a username and password
@@ -97,4 +97,17 @@ class HTTPBasic extends \Sabre\DAV\Auth\Backend\AbstractBasic
return $success;
}
+
+ /**
+ * Returns information about the currently logged in username.
+ *
+ * If nobody is currently logged in, this method should return null.
+ *
+ * @return string|null
+ */
+ public function getCurrentUser()
+ {
+ // return the canonic user name
+ return self::$current_user;
+ }
}