| 1 |
<?php |
<?php |
| 2 |
// $Id: versioncontrol_project.module,v 1.71 2009/02/27 20:19:23 jpetso Exp $ |
// $Id: versioncontrol_project.module,v 1.72 2009/03/21 02:33:50 jpetso Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* Version Control / Project Node integration - Integrates project nodes |
* Version Control / Project Node integration - Integrates project nodes |
| 155 |
|
|
| 156 |
// Grant access to the node owner. |
// Grant access to the node owner. |
| 157 |
if ($project_node->uid == $account->uid |
if ($project_node->uid == $account->uid |
| 158 |
&& versioncontrol_is_account_authorized($account->uid, $repository)) { |
&& versioncontrol_is_account_authorized($repository, $account->uid)) { |
| 159 |
return TRUE; |
return TRUE; |
| 160 |
} |
} |
| 161 |
// Grant access to version control and node admins. |
// Grant access to version control and node admins. |
| 573 |
} |
} |
| 574 |
|
|
| 575 |
// Indicate any maintainers whose account is no longer approved. |
// Indicate any maintainers whose account is no longer approved. |
| 576 |
if (!versioncontrol_is_account_authorized($uid, $project_repository)) { |
if (!versioncontrol_is_account_authorized($project_repository, $uid)) { |
| 577 |
$username = '<del>'. theme('username', $user) .'</del> <em>('. t('repository access disabled') .')</em>'; |
$username = '<del>'. theme('username', $user) .'</del> <em>('. t('repository access disabled') .')</em>'; |
| 578 |
} |
} |
| 579 |
else { |
else { |