You are here

function facetapi_access_callback in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 facetapi.module \facetapi_access_callback()
  2. 7 facetapi.module \facetapi_access_callback()

Custom access callback. Checks if the user has either the "administer search" OR "administer facets" permissions.

Return value

boolean TRUE if the user has access to the resource, FALSE otherwise.

2 string references to 'facetapi_access_callback'
current_search_menu_alter in contrib/current_search/current_search.module
Implements hook_menu_alter().
facetapi_menu in ./facetapi.module
Implements hook_menu().

File

./facetapi.module, line 311
An abstracted facet API that can be used by various search backends.

Code

function facetapi_access_callback() {
  return user_access('administer search') || user_access('administer facets');
}