Skip to content
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

Best place for access conditions #4364

Closed
axzx opened this issue Mar 7, 2017 · 1 comment
Closed

Best place for access conditions #4364

axzx opened this issue Mar 7, 2017 · 1 comment

Comments

@axzx
Copy link
Contributor

axzx commented Mar 7, 2017

Where is the best place to save access conditions? I need to: block the action function and also to hide the buttons.
I have role ROLE_USER_ADMIN_USER_VIEW_OWN and I use handler sonata.admin.security.handler.role.
I want to give access to action show for users who have this role.

@jordisala1991
Copy link
Member

For general support and questions, please use http://stackoverflow.com/questions/tagged/sonata

Closing as this is not an issue with Sonata or a feature request. If you think this is question could be converted into a new feature for Sonata, feel free to open a new issue with your proposal.

(I would probably try to block access to all show routes unless you have that role, and use a custom button that only appears if you have that role, without giving too much thought to it)

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

No branches or pull requests

2 participants