QueueItemObjectPermission
Overview
Extends DjangoObjectPermissions to support state permissions and CRUDL naming conventions. It sets the 'view_action' in permission checks to determine required permissions for views and objects based on the current action in the view.
has_object_permission
Records the current view action then delegates to DjangoObjectPermissions.
Signature
has_object_permission(self, request, view, obj)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| request | yes | ||
| view | yes | ||
| obj | yes |
Source
server/vueda/vdq/permissions.py:9
has_permission
Defer a model-level denial only when a matching state grant can be decided later.
Object-scoped actions defer to has_object_permission. Framework list actions defer to their workflow-aware queryset filter. Collection writes, including create, retain the model-level result because no existing object supplies a workflow state.
Signature
has_permission(self, request, view)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| request | yes | ||
| view | yes |
Source
server/vueda/vdq/permissions.py:15
Source
server/vueda/vdq/permissions.py:8