summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-12-09 23:42:40 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2018-12-09 23:42:40 +0100
commit3cd70773d81c5f9dc0a6ff1e9d25b94f654c256f (patch)
treeb001768e52b775842268930276a02fcf17c504b0
parent412be8e1884eab7d543c26fafcc93fca3eca8cd1 (diff)
Authenticator: Use id from user object
Closes #519 (iCal/JSON export only works when logged in)
-rw-r--r--src/Helpers/Authenticator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Helpers/Authenticator.php b/src/Helpers/Authenticator.php
index edceaa44..61d07980 100644
--- a/src/Helpers/Authenticator.php
+++ b/src/Helpers/Authenticator.php
@@ -104,7 +104,7 @@ class Authenticator
$abilities = (array)$abilities;
if (empty($this->permissions)) {
- $userId = $this->session->get('uid');
+ $userId = $this->user ? $this->user->id : $this->session->get('uid');
if ($userId) {
if ($user = $this->user()) {