Skip to content

Commit

Permalink
fixed issue about module ability
Browse files Browse the repository at this point in the history
  • Loading branch information
nahid committed Mar 19, 2018
1 parent e1522bb commit c9d00b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Permission.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ protected function parseAbilities($modules)
} elseif (is_string($key)) {
$policies_name = explode('.', $ability);
if (count($policies_name)==2) {
$new_abilities[$module][$ability] = $policies[$policies_name[0]][$policies_name[1]];
$new_abilities[$module][$key] = $policies[$policies_name[0]][$policies_name[1]];
}
}
}
Expand Down

0 comments on commit c9d00b3

Please sign in to comment.