Permissions audit #3795
Unanswered
filipegiusti
asked this question in
Help
Replies: 1 comment
-
I see that you're attempting to use some internal calls to retrieve that list. I'll paste a snippet of code below that might work for your case. However, please be aware that these internals might change in the future. Avo::Resources::ResourceManager.fetch_resources.map { {_1 => _1.new(view: :index).get_actions} } |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to generate a list of resources actions that each user role has access to in order to be able to audit our permissions, however I got stuck when instantiating a Resource.
This is as far as I could get.
Apparently the resources are missing
@actions_loader
being set.My idea was to get a list of actions for each resource than get the policy of each resource and run
act_on?
against each user role. However I can't get a list of actions for a resource.Beta Was this translation helpful? Give feedback.
All reactions