Skip to content

Commit

Permalink
DP-196 Fix hasRole method
Browse files Browse the repository at this point in the history
- make hasRole public
  • Loading branch information
yaroslavmo committed Apr 23, 2020
1 parent 4317068 commit 71c97dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utility/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 71c97dc

Please sign in to comment.