Skip to content

Commit

Permalink
fix: error parameter in getUsers at default role manager (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
basakest committed Nov 21, 2021
1 parent aa26145 commit c5c8728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Rbac/DefaultRoleManager/RoleManager.php
Expand Up @@ -305,7 +305,7 @@ public function getUsers(string $name, string ...$domain): array
$names = [];
foreach ($patternDomain as $domain) {
$allRoles = &$this->loadOrStoreRoles($domain, new Roles());
if (!$allRoles->hasRole($name, $this->domainMatchingFunc)) {
if (!$allRoles->hasRole($name, $this->matchingFunc)) {
return [];
}

Expand Down

0 comments on commit c5c8728

Please sign in to comment.