| 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 |
| 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; |