Skip to content

Commit

Permalink
Make sure role array isset in abilities array
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemclin committed Jan 7, 2016
1 parent 3f4445c commit 7952900
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public function can($ability)
{
foreach ($this->roles as $role) {
if (
isset($this->abilities[$role]) &&
is_array($this->abilities[$role]) &&
in_array($ability, $this->abilities[$role])
) {
Expand Down

0 comments on commit 7952900

Please sign in to comment.