Index: project.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/project/project.inc,v retrieving revision 1.118 diff -u -r1.118 project.inc --- project.inc 14 Oct 2007 18:34:50 -0000 1.118 +++ project.inc 26 Oct 2007 14:36:50 -0000 @@ -459,12 +459,15 @@ } break; case 'create': + // Note that this isn't called for users with the 'administer nodes' + // permission, so we don't need to special-case those. if ($user->uid && user_access('maintain projects')) { - // Since this CVS access checking is non-standard, we need to - // special-case uid 1 to always allow everything. - if ($user->uid != 1 && module_exists('cvs') && variable_get('cvs_restrict_project_creation', 1)) { + if (module_exists('cvs') && variable_get('cvs_restrict_project_creation', 1)) { return db_result(db_query("SELECT uid FROM {cvs_accounts} WHERE uid = %d AND status = %d", $user->uid, CVS_APPROVED)) ? TRUE : FALSE; } + else if (module_exists('versioncontrol_project')) { + return versioncontrol_project_creation_is_allowed($user->uid); + } else { return TRUE; }