Skip to content

Update security doc #624

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 5, 2018
Merged

Update security doc #624

merged 2 commits into from
Nov 5, 2018

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