WorkflowObjectPermissions
Overview
Target-model permissions for workflow endpoints that address a target model's data.
The view names its target model through app_label and model, and lists the actions that carry a target-model gate in target_model_permission_actions.
Workflow definition endpoints describe the workflow itself rather than any object under it. They carry the vueda_workflow.read_workflow gate the viewset applies, and no target-model gate, so a target-model permission neither admits nor denies them.
has_permission
Apply the target-model gate only to the actions that address target-model data.
Signature
has_permission(self, request, view)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| self | yes | ||
| request | yes | ||
| view | yes |
Returns
<class 'bool'>
Source
server/vueda/workflow/permissions.py:20
Source
server/vueda/workflow/permissions.py:8