Skip to content

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

NameTypeRequiredDescription
selfyes
requestyes
viewyes
objyes

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

NameTypeRequiredDescription
selfyes
requestyes
viewyes

Source

server/vueda/vdq/permissions.py:15

Source

server/vueda/vdq/permissions.py:8

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2