/[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.5, Tue Jul 4 16:58:38 2006 UTC revision 1.6, Sat Sep 9 17:30:12 2006 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: workflow_access.module,v 1.4 2006/04/08 23:51:34 merlinofchaos Exp $  // $Id: workflow_access.module,v 1.5 2006/07/04 16:58:38 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  }  }
214    
215    /**
216     * When workflow transitions, be sure to update permissions.
217     */
218    function workflow_access_workflow($op, $old_sid, $sid, $node) {
219      if ($op == 'transition post' && $old_sid != $sid) {
220         na_arbitrator_acquire_grants($node);
221      }
222    }

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

  ViewVC Help
Powered by ViewVC 1.1.2