Closed (fixed)
Project:
Project
Version:
4.7.x-1.x-dev
Component:
Projects
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
11 Jan 2007 at 21:44 UTC
Updated:
29 Jan 2007 at 10:15 UTC
Jump to comment: Most recent file
due to a bug in project_access(), node_access contrib modules (simple_access, node_privacy_byrole, etc) can not grant permission to update or delete project nodes beyond node/project admins and the owner of the project. while i was at it, i cleaned up some related code and simplified some of the logic (since node_access() itself will grant users the permission to edit/delete their own nodes).
attached patch only applies cleanly to DRUPAL-4-7 branch. i'll followup with a patch that works for DRUPAL-4-7--2 and HEAD in a second.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | project_access_break.patch.txt | 1.92 KB | dww |
| #1 | project_access_4_7-2.patch.txt | 1.26 KB | dww |
| project_access_4_7.patch.txt | 1.14 KB | dww |
Comments
Comment #1
dwwpatch for DRUPAL-4-7--2 (applies to HEAD with minor offsets).
Comment #2
dwwcommitted to DRUPAL-4-7, DRUPAL-4-7--2 and HEAD.
Comment #3
dwwsee http://drupal.org/node/109442 -- stupid bug. i was forgetting to
break;out of the $op cases, so 'view' was falling through and hitting the 'create' case'sreturn FALSE. :(Comment #4
heine commentedComment #5
dwwcommitted to HEAD, DRUPAL-4-7--2, DRUPAL-4-7 and DRUPAL-4-6. installed on d.o.
Comment #6
(not verified) commented