| ... | @@ -67,7 +67,7 @@ Extends `LDPBasePermissions` to provide model-level permissions for three user r |
... | @@ -67,7 +67,7 @@ Extends `LDPBasePermissions` to provide model-level permissions for three user r |
|
|
|
|
|
|
|
Extends `LDPBasePermissions` to provide object-level permissions, based on all `AuthenticationBackends` configured in your application (this will likely be Django's `Groups` Django-Guardian's object-level permissions). Inherit this class' `get_object_permissions` to allow object and group level permissions in your custom class
|
|
Extends `LDPBasePermissions` to provide object-level permissions, based on all `AuthenticationBackends` configured in your application (this will likely be Django's `Groups` Django-Guardian's object-level permissions). Inherit this class' `get_object_permissions` to allow object and group level permissions in your custom class
|
|
|
|
|
|
|
|
### Django Guardian
|
|
## Django Guardian
|
|
|
|
|
|
|
|
DjangoLDP comes packaged with [Django-Guardian](https://django-guardian.readthedocs.io/en/stable/overview.html), which is used for supporting object-level permissions
|
|
DjangoLDP comes packaged with [Django-Guardian](https://django-guardian.readthedocs.io/en/stable/overview.html), which is used for supporting object-level permissions
|
|
|
|
|
|
| ... | @@ -79,6 +79,10 @@ class CustomAdmin(GuardedModelAdmin): |
... | @@ -79,6 +79,10 @@ class CustomAdmin(GuardedModelAdmin): |
|
|
pass
|
|
pass
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
## SuperUserPermission
|
|
|
|
|
|
|
|
Simply grants superusers access to every request
|
|
|
|
|
|
|
## LDPPermissions
|
|
## LDPPermissions
|
|
|
|
|
|
|
|
Combines `OwnerAuthAnonPermissions` and `LDPObjectLevelPermissions` with a custom `filter_backend` and provides a cache. By default applied to `Model` and `LDPViewSet` subclasses when no custom permissions present
|
|
Combines `OwnerAuthAnonPermissions` and `LDPObjectLevelPermissions` with a custom `filter_backend` and provides a cache. By default applied to `Model` and `LDPViewSet` subclasses when no custom permissions present
|
| ... | |
... | |
| ... | | ... | |