geonode.base.api.permissions
Attributes
Classes
Grant permission only if the current instance is the request user. |
|
Grant permissions if instance IS the request user, or read-only. |
|
Grant R/W to self and superusers/staff members. Deny others. |
|
Grant R/W to self and superusers/staff members, R/O to others. |
|
Grant R/W to self and superusers/staff members, R/O to auth. |
|
Object-level permission to only allow admin and owners of an object to edit it. |
|
Object-level permission to only allow owners of an object to edit it. |
|
Object-level permission to only allow admin and managers to edit a group. |
|
A filter backend that limits results to those where the requesting user |
|
Module Contents
- class geonode.base.api.permissions.IsSelf[source]
Bases:
rest_framework.permissions.BasePermissionGrant permission only if the current instance is the request user. Used to allow users to edit their own account, nothing to others (even superusers).
- class geonode.base.api.permissions.IsSelfOrReadOnly[source]
Bases:
IsSelfGrant permissions if instance IS the request user, or read-only. Used to allow users to edit their own account, and others to read.
- class geonode.base.api.permissions.IsSelfOrAdmin[source]
Bases:
IsSelfGrant R/W to self and superusers/staff members. Deny others.
- class geonode.base.api.permissions.IsSelfOrAdminOrReadOnly[source]
Bases:
IsSelfOrAdminGrant R/W to self and superusers/staff members, R/O to others.
- class geonode.base.api.permissions.IsSelfOrAdminOrAuthenticatedReadOnly[source]
Bases:
IsSelfOrAdminGrant R/W to self and superusers/staff members, R/O to auth.
- class geonode.base.api.permissions.IsOwnerOrAdmin[source]
Bases:
rest_framework.permissions.BasePermissionObject-level permission to only allow admin and owners of an object to edit it. Assumes the model instance has an owner attribute.
- class geonode.base.api.permissions.IsOwnerOrReadOnly[source]
Bases:
IsOwnerOrAdminObject-level permission to only allow owners of an object to edit it. Assumes the model instance has an owner attribute.
- class geonode.base.api.permissions.IsManagerEditOrAdmin[source]
Bases:
rest_framework.permissions.BasePermissionObject-level permission to only allow admin and managers to edit a group.