You are here

function node_gallery_api_upload_access in Node Gallery 7

Access function for uploads.

1 string reference to 'node_gallery_api_upload_access'
node_gallery_api_menu in ./node_gallery_api.module
Implements hook_menu().

File

./node_gallery_api.module, line 228
Node Gallery module.

Code

function node_gallery_api_upload_access($gallery, $item_type = NULL) {
  $relationship_types = node_gallery_api_get_relationship_type($gallery->type, $item_type);
  return !empty($relationship_types) && node_gallery_api_user_access('upload', $gallery);
}