Skip to content

Commit 435ca9a

Browse files
authored
Replace has_role with is_granted (#1328)
1 parent b9e0ba8 commit 435ca9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/subresources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ The `subresourceOperations` attribute also allows you to add an access control o
228228
#[ApiResource(
229229
subresourceOperations: [
230230
'api_questions_answer_get_subresource' => [
231-
'security' => "has_role('ROLE_AUTHENTICATED')",
231+
'security' => "is_granted('ROLE_AUTHENTICATED')",
232232
],
233233
],
234234
)]

0 commit comments

Comments
 (0)