We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a simple model with 'using_access_control' at the top.
To test my rules, I leave Authorization.current_user in its default anonymous user and try:
m = Model.last m.destroy
and am correctly blocked from doing so, however:
m.delete
works right away. Why is that?
The text was updated successfully, but these errors were encountered:
My Rails knowledge may be lacking but is this because ".delete" in ActiveRecord doesn't allow for any hooks or callbacks whatsoever?
Sorry, something went wrong.
No branches or pull requests
I have a simple model with 'using_access_control' at the top.
To test my rules, I leave Authorization.current_user in its default anonymous user and try:
m = Model.last
m.destroy
and am correctly blocked from doing so, however:
m.delete
works right away. Why is that?
The text was updated successfully, but these errors were encountered: