mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-29 01:55:01 +00:00
Fixed: [calendar] Do not require scope when adding calendar roles
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user