diff --git a/src/Utility/Session.php b/src/Utility/Session.php index ee9d63de..fc865b20 100644 --- a/src/Utility/Session.php +++ b/src/Utility/Session.php @@ -1088,7 +1088,7 @@ public static function forget($key) /** * @return boolean */ - private static function hasRole() + public static function hasRole() { if(is_null(\Session::get('has_role'))){ \Session::put('has_role', UserAppRole::whereUserId(Session::getCurrentUserId())->exists());