Authenticator: Use id from user object

Closes #519 (iCal/JSON export only works when logged in)
This commit is contained in:
Igor Scheller 2018-12-09 23:42:40 +01:00
parent 412be8e188
commit 3cd70773d8
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class Authenticator
$abilities = (array)$abilities; $abilities = (array)$abilities;
if (empty($this->permissions)) { if (empty($this->permissions)) {
$userId = $this->session->get('uid'); $userId = $this->user ? $this->user->id : $this->session->get('uid');
if ($userId) { if ($userId) {
if ($user = $this->user()) { if ($user = $this->user()) {