You are here

function bundle_copy_import_access in Bundle Copy 7.2

Same name and namespace in other branches
  1. 7 bundle_copy.module \bundle_copy_import_access()

Bundle copy import access callback.

Bundle copy imports require an additional access check because they are PHP code and PHP is more locked down than the general permission.

1 string reference to 'bundle_copy_import_access'
bundle_copy_menu in ./bundle_copy.module
Implements hook_menu().

File

./bundle_copy.module, line 123
Bundle copy.

Code

function bundle_copy_import_access($permission) {
  return user_access($permission) && user_access('use PHP for settings');
}