You are here

function feeds_page_access in Feeds 8.2

Same name and namespace in other branches
  1. 6 feeds.module \feeds_page_access()
  2. 7.2 feeds.module \feeds_page_access()
  3. 7 feeds.module \feeds_page_access()

Menu access callback.

Related topics

1 string reference to 'feeds_page_access'
feeds_menu in ./feeds.module
Implements hook_menu().

File

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

Code

function feeds_page_access() {
  if (user_access('administer feeds')) {
    return TRUE;
  }
  foreach (feeds_enabled_importers() as $id) {
    if (user_access("import {$id} feeds")) {
      return TRUE;
    }
  }
  return FALSE;
}