You are here

function file_entity_access in File Entity (fieldable files) 7

Same name and namespace in other branches
  1. 7.3 file_entity.module \file_entity_access()
  2. 7.2 file_entity.module \file_entity_access()

Access callback for files.

1 string reference to 'file_entity_access'
file_entity_menu in ./file_entity.module
Implements hook_menu().

File

./file_entity.module, line 32
Extends Drupal file entities to be fieldable and viewable.

Code

function file_entity_access($op) {
  return user_access('administer files') || user_access($op . ' file');
}