Skip to content

#461 - Add access control example #607

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
Oct 8, 2018
Merged

Conversation

Timherlaud
Copy link
Contributor

@Timherlaud Timherlaud commented Oct 8, 2018

PR for adding the access control on path annotation.
refer to #461

@@ -462,6 +462,21 @@ class Question
}
```

### Access Control of Subresources

The `subresourceOperations` annotation also allows you to add an access control on each path with the directive `access_control `.
Copy link
Member

Choose a reason for hiding this comment

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

I think you can use "attribute" instead of "annotation" and "directive".

@alanpoulain
Copy link
Member

One last thing, this PR should target 2.3 IMO (please rebase your branch beforehand).

@Timherlaud Timherlaud changed the base branch from master to 2.3 October 8, 2018 12:22
Update doc for access control after comment

Update doc for access control after comment 2

Update doc for access control add reference Question on xample

Update doc for access control add reference Question on xample
@Timherlaud
Copy link
Contributor Author

@alanpoulain it's rebase

@@ -462,6 +462,29 @@ class Question
}
```

### Access Control of Subresources

The `subresourceOperations` attribute also allows you to add an access control on each path with the attribute `access_control `.
Copy link
Member

Choose a reason for hiding this comment

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

Minor comment: you can remove the space in "access_control ".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes sorry

@soyuka soyuka merged commit 0eeebb2 into api-platform:2.3 Oct 8, 2018
@soyuka
Copy link
Member

soyuka commented Oct 8, 2018

Thanks @tim59 !

@Timherlaud
Copy link
Contributor Author

You're welcome 👍

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.

3 participants