You are here

function geocoder_service_check_perms in Geocoder 7

Geocoder service check permissions.

Given a handler, check to see if the user has permission to execute it via AJAX / services.

2 calls to geocoder_service_check_perms()
geocoder_services_access in ./geocoder.services.inc
Callback.
geocoder_service_check_request in ./geocoder.module
Geocoder Service Check Request.
1 string reference to 'geocoder_service_check_perms'
geocoder_menu in ./geocoder.module
Implements hook_menu().

File

./geocoder.module, line 259

Code

function geocoder_service_check_perms($handler) {
  return user_access('geocoder_service_all_handlers') || user_access('geocoder_service_handler_' . $handler);
}