/[drupal]/contributions/modules/image_pub/image_pub.common.inc
ViewVC logotype

Diff of /contributions/modules/image_pub/image_pub.common.inc

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

revision 1.1.2.2, Sat Mar 28 22:53:37 2009 UTC revision 1.1.2.3, Sat Mar 28 23:32:31 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: image_pub.common.inc,v 1.1.2.1 2009/01/31 02:00:25 egfrith Exp $  // $Id: image_pub.common.inc,v 1.1.2.2 2009/03/28 22:53:37 egfrith Exp $
3    
4  /*  /*
5   * Generalized helper functions for tasks that require tight integration   * Generalized helper functions for tasks that require tight integration
# Line 105  function _image_pub_album_access($type, Line 105  function _image_pub_album_access($type,
105    switch ($type) {    switch ($type) {
106      case 'view':      case 'view':
107        return user_access('access content');        return user_access('access content');
     case 'update':  
       return user_access('administer images');  
108      case 'create':      case 'create':
109          return user_access('administer images');
110        case 'update':
111        return user_access('create images');        return user_access('create images');
112    }    }
113    return FALSE;    return FALSE;

Legend:
Removed from v.1.1.2.2  
changed lines
  Added in v.1.1.2.3

  ViewVC Help
Powered by ViewVC 1.1.2