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

Feature Request in permissions_required and has_permissions too #50

Open
tarunbhardwaj opened this issue May 17, 2013 · 2 comments
Open

Comments

@tarunbhardwaj
Copy link
Contributor

tarunbhardwaj commented May 17, 2013

Currently permissions_required and has_permissions both of these check for all permissions passed to these decorator/method.

It should be possible to check any of the passed permissions.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2981798-feature-request-in-permissions_required-and-has_permissions-too?utm_campaign=plugin&utm_content=tracker%2F386869&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F386869&utm_medium=issues&utm_source=github).
@sharoonthomas
Copy link

This is already the case, has_permissions takes an optional second argument/keyword argument which checks for atleast one of the permissions

https://github.com/openlabs/nereid/blob/develop/trytond_nereid/user.py#L196

@sharoonthomas
Copy link

However, leave this open, since this has to be better documented

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

No branches or pull requests

2 participants