summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()) {