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
What would you like to be able to do? Can you provide some examples?
User
role
user
admin
How could we go about implementing that? something similar to Discussion: How to change fields' visibility in a form using Pundit's permitted_attributes_for#{action}? #1137 but using Pundit with something like AttributesScope. I could work on it.
permitted_attributes_for#{action}
AttributesScope
Can you think of other approaches to the problem? Not
The text was updated successfully, but these errors were encountered:
Unfortunately this is not supported at the moment. See #1862
I'm going to close this as it is a duplicate.
Sorry, something went wrong.
No branches or pull requests
What would you like to be able to do? Can you provide some examples?
User
hasrole
attributeuser
isadmin
, then therole
attribute would be visible on the formuser
is notadmin
, then therole
attribute would not be visible on the formHow could we go about implementing that?
something similar to Discussion: How to change fields' visibility in a form using Pundit's
permitted_attributes_for#{action}
? #1137 but using Pundit with something likeAttributesScope
. I could work on it.Can you think of other approaches to the problem?
Not
The text was updated successfully, but these errors were encountered: