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.

Comments

dww’s picture

StatusFileSize
new1.26 KB

patch for DRUPAL-4-7--2 (applies to HEAD with minor offsets).

dww’s picture

Status: Needs review » Fixed

committed to DRUPAL-4-7, DRUPAL-4-7--2 and HEAD.

dww’s picture

Status: Fixed » Needs review
StatusFileSize
new1.92 KB

see 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's return FALSE. :(

heine’s picture

Status: Needs review » Reviewed & tested by the community
dww’s picture

Status: Reviewed & tested by the community » Fixed

committed to HEAD, DRUPAL-4-7--2, DRUPAL-4-7 and DRUPAL-4-6. installed on d.o.

Anonymous’s picture

Status: Fixed » Closed (fixed)