Authenticator: Use id from user object

Closes #519 (iCal/JSON export only works when logged in)
main
Igor Scheller 6 years ago
parent 412be8e188
commit 3cd70773d8

@ -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()) {

Loading…
Cancel
Save