Skip to content

Commit

Permalink
fix directives
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny committed May 11, 2022
1 parent b5a80a7 commit 12ca480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UsersServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ private function initPermissionsAndRoles()
'entrusted', 'entrustedAny', 'distrusted', 'distrustedAny',
'permitted', 'permittedAny', 'forbad', 'forbadAny'
] as $action) {
Blade::if($action, function (...$roles) {
return $action($roles);
Blade::if($action, function (...$list) use ($action) {
return $action($list);
});
}
}
Expand Down

0 comments on commit 12ca480

Please sign in to comment.