Skip to content
New issue

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

Apply permissions on custom actions #22

Open
jatindergit opened this issue Jul 21, 2021 · 0 comments
Open

Apply permissions on custom actions #22

jatindergit opened this issue Jul 21, 2021 · 0 comments

Comments

@jatindergit
Copy link

Hi @yezyilomo

This is really a great package but how can I add groups and permissions on custom actions like:
'PATCH': {
'claim': {
'groups': 'any',
'permissions': ['configurations.claim_event']
}, 'unclaim': {
'groups': 'any',
'permissions': ['configurations.unclaim_event']
}
},

If I see your package files, you are only checking for
if view.action in ['list', 'retrieve']:

I think we should comment this condition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant