You are here

function feeds_importer_import_access in Feeds 7.2

Access callback to determine if the user can import Feeds importers.

Feeds imports require an additional access check because they are PHP code and PHP is more locked down than administer feeds.

Return value

bool True if access is granted. False otherwise.

Related topics

1 string reference to 'feeds_importer_import_access'
feeds_ui_menu in feeds_ui/feeds_ui.module
Implements hook_menu().

File

./feeds.module, line 571
Feeds - basic API functions and hook implementations.

Code

function feeds_importer_import_access() {
  return user_access('administer feeds') && user_access('use PHP for settings');
}