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

without_access_control is not available in controllers #189

Open
cthielen opened this issue Dec 16, 2013 · 1 comment
Open

without_access_control is not available in controllers #189

cthielen opened this issue Dec 16, 2013 · 1 comment

Comments

@cthielen
Copy link

The without_access_control block is safer than Authorization.ignore_access_control as it implicitly turns the rules back on at the end of the block. Why is this not available in controllers?

@urkle
Copy link
Contributor

urkle commented Jun 12, 2015

it's not available anywhere by default.. you have to explicitly include the maintenance file require 'declarative_authorization/maintenance'
then use Authorization::Maintenance::without_access_control (or include the module in the controller)

What is your use case for needing to do this in a controller?

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