Skip to content

How to check for roles in the controller #274

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 1 commit into from
May 11, 2011

Conversation

gbirke
Copy link
Contributor

@gbirke gbirke commented May 11, 2011

The Authorization chapter explains how to check for roles in the template, but in in the controller. After asking on the mailing list, I included a paragraph + small example on how to do it in the controller.

@stof
Copy link
Member

stof commented May 11, 2011

the security doc is being rewritten from scratch currently. So I'm not sure it is worth merging it now.

weaverryan added a commit that referenced this pull request May 11, 2011
How to check for roles in the controller
@weaverryan weaverryan merged commit 1a041cb into symfony:master May 11, 2011
@weaverryan
Copy link
Member

I've merged it, but @stof is right that the docs are being reworked. But since I think this is a good topic, I've copied what you have here to my new version of the chapter.

Thanks!

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