fix issues from master

This commit is contained in:
2023-04-11 11:43:01 +02:00
parent d9dd8d7317
commit 841bdb0ebf
3 changed files with 3 additions and 12 deletions

View File

@@ -63,7 +63,6 @@ class AuthorizationHelper implements AuthorizationHelperInterface
*
* @param User $user The user
* @param array $centers a list of centers which are going to be filtered
* @param string $role
*/
public function filterReachableCenters(User $user, array $centers, $role): array
{
@@ -197,10 +196,6 @@ class AuthorizationHelper implements AuthorizationHelperInterface
*/
public function getReachableScopes(UserInterface $user, string $role, Center|array $center): array
{
if ($role instanceof Role) {
$role = $role->getRole();
}
return $this->getReachableCircles($user, $role, $center);
}