Skip to content

Commit 63fbfec

Browse files
authored
Update Guard.php
1 parent e2f48cc commit 63fbfec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Guard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function enforce(string $permission, ActorInterface|RoleInterface $actor,
3030
case RuleMode::with:
3131
return $role->has($permission) && $rule->can($actor, $context);
3232
case RuleMode::without:
33-
return !$role->getRole()->has($permission) && $rule->can($actor, $context);
33+
return !$role->has($permission) && $rule->can($actor, $context);
3434
case RuleMode::ever:
3535
return $rule->can($actor, $context);
3636
}

0 commit comments

Comments
 (0)