/[drupal]/contributions/modules/versioncontrol_project/versioncontrol_project.module
ViewVC logotype

Diff of /contributions/modules/versioncontrol_project/versioncontrol_project.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.72, Sat Mar 21 02:33:50 2009 UTC revision 1.73, Fri Apr 3 22:08:39 2009 UTC
# Line 1  Line 1 
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
# Line 155  function versioncontrol_project_commit_a Line 155  function versioncontrol_project_commit_a
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.
# Line 573  function versioncontrol_project_commit_a Line 573  function versioncontrol_project_commit_a
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 {

Legend:
Removed from v.1.72  
changed lines
  Added in v.1.73

  ViewVC Help
Powered by ViewVC 1.1.2