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

Commit 5e37b17

Browse files
author
Teddy Roncin
committed
🐛 (PATCH /groups/{id} - security) object (the group to modify) was not passed to the voter
1 parent 6bc5b65 commit 5e37b17

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
@@ -70,7 +70,7 @@
7070
'skip_null_values' => false,
7171
],
7272
denormalizationContext: ['groups' => ['group:write:update']],
73-
security: "is_granted('ROLE_ADMIN')",
73+
security: "is_granted('ROLE_ADMIN', object)",
7474
),
7575
],
7676
paginationItemsPerPage: 10,

0 commit comments

Comments
 (0)