/[drupal]/contributions/modules/na_arbitrator/workflow_access.module
ViewVC logotype

Diff of /contributions/modules/na_arbitrator/workflow_access.module

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

revision 1.6, Sat Sep 9 17:30:12 2006 UTC revision 1.7, Sat Sep 9 22:58:10 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: workflow_access.module,v 1.5 2006/07/04 16:58:38 merlinofchaos Exp $  // $Id: workflow_access.module,v 1.6 2006/09/09 17:30:12 merlinofchaos Exp $
3    
4  /**  /**
5   * @file workflow_access.module   * @file workflow_access.module
# Line 211  function workflow_access_workflow($op, $ Line 211  function workflow_access_workflow($op, $
211      na_arbitrator_acquire_grants($node);      na_arbitrator_acquire_grants($node);
212    }    }
213  }  }
   
 /**  
  * When workflow transitions, be sure to update permissions.  
  */  
 function workflow_access_workflow($op, $old_sid, $sid, $node) {  
   if ($op == 'transition post' && $old_sid != $sid) {  
      na_arbitrator_acquire_grants($node);  
   }  
 }  

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.2