Authenticator: Use id from user object
Closes #519 (iCal/JSON export only works when logged in)
This commit is contained in:
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…
Reference in New Issue