Closed (fixed)
Project:
Workflow
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 May 2013 at 17:24 UTC
Updated:
31 May 2013 at 11:50 UTC
Workflow 7.x-1.1
When I schedule any transition related to OG workflow and run cron, I see this message: "You are not allowed to make this transition." I'm logged in as the administrator. The authenticated user role has the right to schedule transitions. The admin can make the transition immediately; the only issue is with scheduling it. After running cron, there is no change to the scheduled item; the scheduled transition still shows, and the workflow state has not changed.
Scheduling transitions outside of OG workflow is working as expected for any role with the rights to do it, including admin.
I'm at a loss here; any suggestions would be greatly appreciated.
Comments
Comment #1
webby7097 commentedUpdating this issue to Workflow, as I can no longer schedule any workflow transitions, even outside of OG.
Comment #2
nancydruDoesn't cron usually run as Anonymous?
AFAICT, that message is not coming from Workflow.
Comment #3
nancydruI've committed a small change to hook_node_load() that could result in not all nodes being loaded. Please try the dev release after Midnight (GMT) tonight.
Comment #4
webby7097 commentedWith the dev release above in place, my workflow outside of OG is now working successfully, thank you. For workflow inside of OG I'm still getting that message and no state change, so I'll keep troubleshooting that one.
Comment #5
nancydruI'm guessing that they need the "force" parameter.
Comment #6
Tim-Erwin commentedThat's exactly what we need. Somehow we need to know we are running as cron. Please pass the $force parameter to hook_workflow() or is there another way to determine that?
Comment #7
nancydruMoving to OG Workflow
Comment #8
Tim-Erwin commentedNo idea why you moved it to OG Workflow. Let me explain what I meant with "Please pass the $force parameter to hook_workflow()":
OG Workflow is implementing the hook_workflow() hook. However, this hook does not receive the $force parameter. Hence, OG Workflow cannot know whether it should check permissions or not. So the request here is to pass the force parameter to hook_workflow() or tell me what I am missing here. Thanks.
Comment #9
nancydruSo OG Workflow is only reacting rather than driving?
Comment #10
nancydruCommitted
Comment #11
Tim-Erwin commentedPerfect, thank you!
Comment #12.0
(not verified) commentedCorrected the workflow version number.