You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/security.md
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -120,3 +120,8 @@ App\Entity\Book:
120
120
access_control_message: 'Sorry, but you are not the book owner.'
121
121
# ...
122
122
```
123
+
124
+
In access control expressions for collection, the `object` variable contains the list of resources that will be serialized.
125
+
To remove entries from a collection, you should implement [a Doctrine extension](extensions.md) to customize the generated DQL query (e.g. add `WHERE` clauses depending of the currently connected user) instead of using access control expressions.
126
+
127
+
If you use [custom data providers](data-providers.md), you'll have to implement the filtering logic accordingly to the persistence layer you rely on.
0 commit comments