diff --git a/Repositories/Sentinel/SentinelAuthentication.php b/Repositories/Sentinel/SentinelAuthentication.php index f7870dd..cea1fc6 100644 --- a/Repositories/Sentinel/SentinelAuthentication.php +++ b/Repositories/Sentinel/SentinelAuthentication.php @@ -116,6 +116,10 @@ public function completeResetPassword($user, $code, $password) */ public function hasAccess($permission) { + if (! Sentinel::check()) { + return false; + } + return Sentinel::hasAccess($permission); }