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

webby7097’s picture

Project: OG Workflow » Workflow
Version: 7.x-2.0 » 7.x-1.1

Updating this issue to Workflow, as I can no longer schedule any workflow transitions, even outside of OG.

nancydru’s picture

Doesn't cron usually run as Anonymous?

AFAICT, that message is not coming from Workflow.

nancydru’s picture

Status: Active » Fixed

I'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.

webby7097’s picture

With 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.

nancydru’s picture

I'm guessing that they need the "force" parameter.

Tim-Erwin’s picture

Title: No user, including admin, can perform scheduled transitions » pass $force to hook_workflow() in oder to perform scheduled transitions
Category: support » feature
Status: Fixed » Active

That'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?

nancydru’s picture

Project: Workflow » OG Workflow
Version: 7.x-1.1 » 7.x-2.x-dev

Moving to OG Workflow

Tim-Erwin’s picture

Project: OG Workflow » Workflow
Version: 7.x-2.x-dev » 7.x-1.1
Component: User interface » Code

No 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.

nancydru’s picture

So OG Workflow is only reacting rather than driving?

nancydru’s picture

Status: Active » Fixed

Committed

Tim-Erwin’s picture

Perfect, thank you!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Corrected the workflow version number.