You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do you feel about permission classes which are not static like AllowAuthenticated or AllowSuperuser but which need to be instantiated.
I can imagine some scenarios where the option to only customize permission classes with class variables is not enough.
In my project I had some problems integrating this module with djangos integrated permissions feature. So I wrote a permission class like: AllowDjangoPermission("app_name.create_model"). Or something like AllowObjectOwner(related_object_path).
Is this a feature you would be interested in? I could create a new PullRequest after the feature to combine classes with operators is merged.
The text was updated successfully, but these errors were encountered:
This package was prepared for couple side projects, where all possible scenarios were not explored. Any extension that expands permissions and is useful for more people will be welcome.
How do you feel about permission classes which are not static like AllowAuthenticated or AllowSuperuser but which need to be instantiated.
I can imagine some scenarios where the option to only customize permission classes with class variables is not enough.
In my project I had some problems integrating this module with djangos integrated permissions feature. So I wrote a permission class like: AllowDjangoPermission("app_name.create_model"). Or something like AllowObjectOwner(related_object_path).
Is this a feature you would be interested in? I could create a new PullRequest after the feature to combine classes with operators is merged.
The text was updated successfully, but these errors were encountered: