Details
-
Bug
-
Resolution: Fixed
-
High
-
2.5.6, 2.5.8
Description
This was introduced with the fix for https://jira.ez.no/browse/EZEE-2895
https://github.com/ezsystems/ezplatform-workflow/commit/77ea468ae11787cca168a1999121ccd13666871b
https://github.com/ezsystems/ezplatform-workflow/pull/73
Steps to reproduce:
1. Setup workflow, for example (specifics don't really matter):
system: default: workflows: main: name: 'Main Workflow' matchers: content_status: ['draft', 'published'] stages: draft: label: 'Draft' color: '#f15a10' last_stage: false first_round: label: 'First Round Review' color: '#10f15a' last_stage: false final: label: 'Final Review' color: '#5a10f1' last_stage: false approved: label: 'Approved' color: '#301203' last_stage: true initial_stage: 'draft' transitions: # DRAFT to draft_to_first_round: from: 'draft' to: 'first_round' label: 'To First Round' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' notification: user: ["owner", "approvers_64", "group_12"] draft_approve: from: 'draft' to: 'approved' label: 'Approve' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' notification: user: ["owner"] # FIRST ROUND to first_round_to_final: from: 'first_round' to: 'final' label: 'To Final' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' notification: user: ["owner", "approvers_67"] first_approve: from: 'first_round' to: 'approved' label: 'Approve' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' notification: user: ["owner"] first_round_reject: from: 'first_round' to: 'draft' label: 'Reject' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' notification: user: ["owner"] # FINAL to final_approve: from: 'final' to: 'approved' label: 'Approve' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' notification: user: ["owner"] final_reject: from: 'final' to: 'draft' label: 'Reject' icon: '/bundles/ezplatformadminui/img/ez-icons.svg#comment' notification: user: ["owner"]
2. Assign a Role to a "test" user with a subtree limitation e.g. Subtree of Location: /Home/eZ Platform with the following set of policies/limitations:
Module | Function | Limitation |
---|---|---|
User | * | None |
Workflow | **Workflow | Workflow Transition: main: draft_to_first_round |
Content | Create | None |
Content | Read | None |
Content | Edit | None |
Content | Versionread | None |
3. Log in as a test and go to eZ Platform folder.
4. Try to create content e.g. Article.
Expected result:
The user can create content and send it to the "first_round" stage.
Actual result:
The user gets an error on the create content draft page (/content/create/nodraft/folder/eng-US/xxxxxx). This means they cannot create any content at all. See attached stacktrace.