Skip to content

Conversation

jewome62
Copy link
Contributor

Add sentence to redirect to extension to restrict a collection

Add sentence to redirect to extension to restrict a collection
core/security.md Outdated
@@ -120,3 +120,6 @@ App\Entity\Book:
access_control_message: 'Sorry, but you are not the book owner.'
# ...
```

Into access control expression for collection, `object` property is not available.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it is, but it is the collection instance.

core/security.md Outdated
@@ -120,3 +120,6 @@ App\Entity\Book:
access_control_message: 'Sorry, but you are not the book owner.'
# ...
```

Into access control expression for collection, `object` property is not available.
For add restriction on this, you need implement [a extension](extensions.md) to make a custom query.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to add restrictions? you need to?

@dunglas dunglas merged commit 5afec80 into api-platform:2.3 Nov 5, 2018
@dunglas
Copy link
Member

dunglas commented Nov 5, 2018

Thanks @jewome62. I made some slight modifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants