Fixed: [calendar] Do not require scope when adding calendar roles

This commit is contained in:
2022-11-25 15:57:50 +01:00
parent 593caec851
commit 02a7074218
3 changed files with 48 additions and 1 deletions

View File

@@ -61,6 +61,9 @@ class CalendarVoter extends AbstractChillVoter implements ProvideRoleHierarchyIn
public function getRoles(): array
{
return [
self::CREATE,
self::DELETE,
self::EDIT,
self::SEE,
];
}
@@ -72,7 +75,12 @@ class CalendarVoter extends AbstractChillVoter implements ProvideRoleHierarchyIn
public function getRolesWithoutScope(): array
{
return [];
return [
self::CREATE,
self::DELETE,
self::EDIT,
self::SEE,
];
}
protected function supports($attribute, $subject): bool