Skip to content
This repository was archived by the owner on Apr 3, 2023. It is now read-only.

Commit 0044469

Browse files
author
Teddy Roncin
committed
🐛 (DELETE /groups/{id} - Security) The changes of the new GroupAdminVoter was not applied here
1 parent e5240d0 commit 0044469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity/Group.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
),
6363
new Delete(
6464
controller: SoftDeleteController::class,
65-
security: "is_granted('delete', object)",
65+
security: "is_granted('ROLE_ADMIN', object)",
6666
),
6767
new Patch(
6868
normalizationContext: [

0 commit comments

Comments
 (0)