Skip to content

Commit

Permalink
feat: Add inAnyRole to the list of static methods (#525)
Browse files Browse the repository at this point in the history
Calling Sentinel::inAnyRole() wouldn't work while Sentinel::inRole() was working in the same context.
  • Loading branch information
sabas authored Feb 7, 2020
1 parent 92532f2 commit 1ba875c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sentinel.php
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ public function __call($method, $parameters)
return call_user_func_array([$roles, $method], $parameters);
}

$methods = ['getRoles', 'inRole', 'hasAccess', 'hasAnyAccess'];
$methods = ['getRoles', 'inRole', 'inAnyRole', 'hasAccess', 'hasAnyAccess'];

$className = get_class($this);

Expand Down

0 comments on commit 1ba875c

Please sign in to comment.