? ? ? Pending

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
30 May 2020

Summary of Changes

In the first step, the permissions of changing the workflow were very soft, so with this PR the permission checks are harden.

See:

Testing Instructions

Create 2 accounts:

  • a full Super User account to change permissions (account 1)
  • a "normal" backend account to test (account 2)

Now set up the com_content permissions with account 1, that account 2 can access workflow or not (+ test). Then activate/deactivate all permissions one by one (create, edit, delete) and test the workflow elements, if the set permission takes action.

After that go into the individual elements and test the permissions there, too.

avatar bembelimen bembelimen - open - 30 May 2020
avatar bembelimen bembelimen - change - 30 May 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 May 2020
Category Administration Language & Strings Libraries
avatar bembelimen bembelimen - change - 30 May 2020
Title
[4.0] Implement the whole permission system for the workflow
[4.0] [Workflow] Implement the whole permission system for the workflow
avatar bembelimen bembelimen - edited - 30 May 2020
avatar bembelimen bembelimen - change - 4 Jun 2020
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jun 2020
Category Administration Language & Strings Libraries Administration com_content com_workflow Language & Strings Modules Libraries
avatar bembelimen
bembelimen - comment - 5 Jun 2020

Thank you!

avatar bembelimen
bembelimen - comment - 5 Jun 2020

It's already fixed locally, just don't want to push every minute some updates, so I collect and push every few hours.

avatar bembelimen bembelimen - change - 6 Jun 2020
The description was changed
avatar bembelimen bembelimen - edited - 6 Jun 2020
avatar Quy
Quy - comment - 11 Jun 2020

Edit a transition.

Undefined index: workflow_id in \administrator\components\com_workflow\src\Model\TransitionModel.php on line 262

avatar bembelimen
bembelimen - comment - 12 Jun 2020

Edit a transition.

Undefined index: workflow_id in \administrator\components\com_workflow\src\Model\TransitionModel.php on line 262

Thx

avatar Quy
Quy - comment - 12 Jun 2020

Edit and save a transition.

PHP Notice: Undefined variable: pk in \administrator\components\com_workflow\src\Model\TransitionModel.php on line 143

avatar bembelimen
bembelimen - comment - 13 Jun 2020

Thx @Quy

avatar joomla-cms-bot joomla-cms-bot - change - 13 Jun 2020
Category Administration Language & Strings Libraries com_content com_workflow Modules Administration com_content com_workflow Language & Strings Modules
avatar softforge softforge - test_item - 13 Jun 2020 - Tested successfully
avatar softforge
softforge - comment - 13 Jun 2020

I have tested this item successfully on 6161ff0

Thanks to Benjamin for helping me through this one. We discovered an interesting quirk with the display but the permissions worked both in the overall and in the specifics for each workflow


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29263.

avatar particthistle particthistle - test_item - 13 Jun 2020 - Tested successfully
avatar particthistle
particthistle - comment - 13 Jun 2020

I have tested this item successfully on 6161ff0

Tested several permission variations

avatar richard67 richard67 - change - 13 Jun 2020
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 13 Jun 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/29263.

avatar wilsonge wilsonge - change - 13 Jun 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-06-13 16:37:23
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 13 Jun 2020
avatar wilsonge wilsonge - merge - 13 Jun 2020
avatar wilsonge
wilsonge - comment - 13 Jun 2020

Thanks!

Add a Comment

Login with GitHub to post a comment