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
At the moment if you want to filter out a specific action in the dashboards you can override valid_action?
def valid_action?(name, resource = resource_class) %w[].exclude?(name.to_s) && super end
Is there a way to fine tune that on a per resource basis, say I only want record of a certain type to be editable.
def valid_action?(name, resource = resource_class) %w[ edit ].exclude?(name.to_s) if resource.kind = 'non_editable' super end
The text was updated successfully, but these errors were encountered:
Would show_action? work for you? It's different from valid_action?. See http://administrate-demo.herokuapp.com/authorization
show_action?
valid_action?
To clarify:
The names are a bit confusing. I'm currently working on a branch that should make this clearer.
Sorry, something went wrong.
Should be fixed by #1941
No branches or pull requests
At the moment if you want to filter out a specific action in the dashboards you can override valid_action?
Is there a way to fine tune that on a per resource basis, say I only want record of a certain type to be editable.
Would be lovely to be able to write something like :
The text was updated successfully, but these errors were encountered: