Closed (fixed)
Project:
Frequently Asked Questions
Version:
6.x-1.13
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2008 at 18:40 UTC
Updated:
25 May 2012 at 12:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
jhm commentedThe fix is to modify the hook_access for $op == 'view' and && the $node->status to the return value
return user_access('view faq') && $node->status;So the hook_acccess for the faq module looks like this:
Comment #2
jhm commentedchanged status to patch
Comment #3
stella commentedThis issue has now been fixed and will be included in the next dev release later today. Please try one of the attached patches (depending on your Drupal version) for the proper solution.
jhm: your solution didn't account for users who created unpublished nodes - they should have the right to see their own unpublished nodes.
jhm: next time you need to create a patch, please see http://drupal.org/patch/create on how to do this.
Thanks for spotting this bug!
Cheers,
Stella
Comment #4
jhm commentedThanks. As you can tell from my late response, I was too busy to even create a patch.
Will do next time.
The patch works, I think this can be closed.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
stella commentedReleased in 5.x-2.12 and 6.x-1.8.
Comment #7
lukas.weber commentedStill seems to be a problem in views. while the node is not accessible directly, it turns up in views (not if I explicitely restrict to published content of course).