Skip to content

Commit

Permalink
Update PermissionWrapper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator authored Jul 18, 2024
1 parent 72d549d commit daa3d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Wrapper/PermissionWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function replace(CapabilityInterface $capability): void

public function has(CapabilityInterface|string $identity): bool
{
if ($this->has($identity)) {
if ($this->permission->has($identity)) {
return true;
}
return $this->get($identity) !== null;
Expand Down

0 comments on commit daa3d85

Please sign in to comment.