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
For example, the following does not work:
has_permission_on :blog_posts do to :read to :manage do if_attribute blog: { user_id: is { user.id } } end end
Instead, you have to do this, which is not as DRY (or readable):
has_permission_on :blog_posts, to: :read has_permission_on :blog_posts, to: :manage do if_attribute blog: { user_id: is { user.id } } end
Ideally, shouldn't all a role's privileges for an object be definable in one permission block?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For example, the following does not work:
Instead, you have to do this, which is not as DRY (or readable):
Ideally, shouldn't all a role's privileges for an object be definable in one permission block?
The text was updated successfully, but these errors were encountered: