Closed (fixed)
Project:
Workflow
Version:
7.x-1.x-dev
Component:
Workflow Access: Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Jun 2012 at 17:54 UTC
Updated:
24 May 2014 at 08:10 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Tim-Erwin commentedWell, with hindsight I thought, maybe hook_node_access() is not the best pick, as it is not respected by views (correct?) etc. Attached you find a patch that does not look as clean, but solves the issue using the node_access table. It adds records with view permissions for anonymous and authenticated user if they don't yet have one.
Comment #2
Tim-Erwin commentedUps, I forgot to limit the access to published nodes. Fixed it.
Comment #3
nancydruGiven the limited audience could this be done as an add-on module?
Comment #4
johnvThis might be possible if Workflow were a 'true' Field API field, as proposed in #2019345: Create a 'Workflow Field' with Widget, Formatter, Fieldtype
Comment #5
johnvLet's focus on #2019345.
Comment #6
johnvThis should be working now using Workflow Field, which contains support for Node revisions. Please re-open if there is a problem.