Closed (fixed)
Project:
Workbench Moderation
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2012 at 15:25 UTC
Updated:
6 Dec 2013 at 19:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fasdalf@fasdalf.ru commentedAdded access callback to show draft of unpublished node to users with "View own unpublished content" but with no "Vew Revisions" permissions. Works well for me. Test it please.
Comment #2
fasdalf@fasdalf.ru commentedup
Comment #3
fasdalf@fasdalf.ru commented/node/%node/view and /node/%node/draft both have their own access check, so
'access arguments' => array('view revisions'),Is overkill.I think "access content" is enough.
Comment #4
darrenmothersele commentedI found 'access content' is enough. Patch for 1.x
Comment #5
burgs commentedThe patch in #4 seems to work correctly. People who should see the content, can see it, and people who shouldn't can't (whether they have access content permissions or not). It is redirecting to the main node view page always for me. I'm presuming this is standard behaviour for this url.
Comment #6
mwallenberg commented#4 works for me too.
Comment #7
antiorario commentedI think it's time to commit this one.
Also: remember to clear the cache after applying the patch.
Comment #8
les limChanging version.
Comment #9
stevectorThank you. I've committed #4
http://drupalcode.org/project/workbench_moderation.git/commit/0cd33781e2...
Comment #11
mthomas commentedI think patch #1 should be committed also. If a user has permission to view their own unpublished content, it seems like they should also be able to review a draft they created. Is this not the case?
Comment #12
mthomas commentedAfter reviewing this a bit more, I think my issue is separate. Closing with apologies.