Skip to content

Commit 42b0d43

Browse files
authored
docs(security): fix security definition for properties (#1400)
1 parent dc4bd1c commit 42b0d43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/security.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ class Book
102102
App\Entity\Book:
103103
properties:
104104
adminOnlyProperty:
105-
security: 'is_granted("ROLE_ADMIN")'
105+
attributes:
106+
security: 'is_granted("ROLE_ADMIN")'
106107
```
107108
108109
[/codeSelector]

0 commit comments

Comments
 (0)