Skip to content

Pimcore Studio allows publishing data objects despite workflow publish: false #156

Description

@movingthings

Affected Version

2025.4 - LTS

Affected capability

Data Objects

Steps to reproduce

  1. Create a simple data object class, for example DemoItem.

  2. Add a field for the workflow marking store, for example workflowState.

  3. Configure a workflow for that class with a place that denies publishing:

pimcore:
  workflows:
    demo_lifecycle:
      enabled: true
      type: state_machine
      support_strategy:
        type: expression
        arguments:
          - App\Model\DataObject\DemoItem
          - 'subject.getType() == "object"'
      marking_store:
        type: single_state
        arguments:
          - workflowState
      initial_markings:
        - draft
      places:
        draft:
          permissions:
            -
              publish: false
        approved:
          permissions:
            -
              publish: true
      transitions:
        approve:
          from: draft
          to: approved
  1. Create a DemoItem object in the draft workflow place.

  2. Ensure the current user otherwise has regular data object workspace publish permission.

  3. Open the object in Pimcore Studio.

  4. Click “Save & Publish”.

Actual Behavior

The object is successfully published, even though the current workflow place has publish: false.

Expected Behavior

Pimcore Studio should respect workflow place permissions when publishing data objects.
If the current workflow place denies publish, Studio should not allow publishing. Ideally the UI should hide or disable “Save & Publish”, and the backend should reject publish attempts as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    Platform Version

    2025.4 - LTS

    Affected capability

    Data Objects

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions