Closed (fixed)
Project:
Workflow
Version:
5.x-1.1
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
13 Sep 2007 at 23:59 UTC
Updated:
23 Oct 2022 at 12:25 UTC
When anonymous users are given permission to make workflow state changes, workflow_execute_transition treats them as the superuser (user ID 1), allowing them to make any transition regardless of permissions.
I have not confirmed this widely, but on my test site the function also authenticates the anonymous user as user ID 1, so that after making any workflow state-change, they are automatically logged in as the administrator.
The attached patch is rolled against 5.x-1.1, but it's just a one-line change so it will probably work on other versions as well. Testing and version-specific patches are appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| workflow.module_5.patch | 681 bytes | Anonymous (not verified) |
Comments
Comment #1
JacobSingh commentedin DRUPAL-5, thanks!
Comment #2
deekayen commentedThis is in 6.x as