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
It would be great if it were possible to limit access to attributes in a model, e.g. like so:
role :moderator do has_permission_on [:companies], :to => [:read, :index, :show], :exclude => [:name] end
or
role :moderator do has_permission_on [:companies], :to => [:read, :index, :show], :include => [:name] end
where :include contains all accessible attributes, and :exclude contains inaccessible attributes.
The text was updated successfully, but these errors were encountered:
There had been some discussion earlier on this feature on the mailing list: https://groups.google.com/forum/?hl=en_US&fromgroups=#!searchin/declarative_authorization/attribute/declarative_authorization/nLjqv-6h3pk/XLWJTU4WIMgJ
Generally, I agree that this would be nice to have.
Sorry, something went wrong.
No branches or pull requests
It would be great if it were possible to limit access to attributes in a model, e.g. like so:
or
where :include contains all accessible attributes, and :exclude contains inaccessible attributes.
The text was updated successfully, but these errors were encountered: