-
Notifications
You must be signed in to change notification settings - Fork 69
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
Why permission must be str or Enum? #158
Comments
Please describe your case |
Ok. What if I want to check for multiple privileges? For example:
Or maybe even more complex needs - not a set of privileges, but a predicate (which can have any type). Because it may be necessary to combine privileges with AND or OR. |
It is another problem. Django checks for single permission only: https://docs.djangoproject.com/en/2.0/topics/auth/default/#default-permissions Why aiohttp-security should overcomplicate its API? |
It will not be necessary to complicate the API - only removing the restriction on the type of permissions. Under the predicate, I meant something like this:
or
Where:
This is what I would like to do in my project, and I'm stopped only by the restriction on the type of the first argument to the |
|
Sorry for long time answer. I will not argue. But I wanted to know what the mess you mean? |
What if more complex cases are needed?
The text was updated successfully, but these errors were encountered: