when i first added the setting that restricts which projects can edit their cvs repository (http://drupal.org/node/59504) i didn't think of just making it per-user, not per-project, and using the 'administer projects' permission instead. just using the permission makes much more sense, removes a potentially confusing setting, and reduces the # of settings that have to be parsed/loaded on every page. ;) the new release system makes heavy use of 'administer projects' permissions, so this seems like a natural fit.

i'll be rolling a patch for this soon. stay tuned.

Comments

dww’s picture

Status: Active » Needs review
StatusFileSize
new4.26 KB

tested locally as both project admin and regular user. tested editing existing projects and creating new projects. everything works as expected. while i was at it, i added some additional validation just to be extra careful.

dww’s picture

StatusFileSize
new4.39 KB

modified to use variable_del() at killes's suggestion.

AjK’s picture

Status: Needs review » Reviewed & tested by the community

Applies clean to fresh HEAD co. I don't have a full "scratch" test env to run this on but I can say a) it didn't break any of the existing test projects / repos stuff I already had set-up and b) works fine when adding new stuff. :)

dww’s picture

Status: Reviewed & tested by the community » Fixed

committed to HEAD and DRUPAL-4-7--2 (i don't want to change this stuff in the stable 4.7.x-1.* series).
thanks for the review AjK!

Anonymous’s picture

Status: Fixed » Closed (fixed)