---
url: "https://vueda.dev/v3/reference/api/py/vueda.workflow.permissions/WorkflowObjectPermissions.md"
title: "WorkflowObjectPermissions"
---

# 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` {#has_permission}

Apply the target-model gate only to the actions that address target-model data.

### Signature {#has_permission-signature}

`has_permission(self, request, view)`

#### Parameters {#has_permission-parameters}

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| self |  | yes |  |  |
| <span id="has_permission-param-request">request</span> |  | yes |  |  |
| <span id="has_permission-param-view">view</span> |  | yes |  |  |

#### Returns {#has_permission-returns}

`bool`

### Source {#has_permission-source}

`server/vueda/workflow/permissions.py:20`

## Source

`server/vueda/workflow/permissions.py:8`
