function salesforce_mappings_access in Salesforce Suite 7.3
Access callback for managing Salesforce mappings.
1 string reference to 'salesforce_mappings_access'
- salesforce_mapping_entity_info in modules/
salesforce_mapping/ salesforce_mapping.module - Implements hook_entity_info().
File
- modules/
salesforce_mapping/ salesforce_mapping.module, line 52
Code
function salesforce_mappings_access() {
if (!module_exists('salesforce_pull') && !module_exists('salesforce_push')) {
return FALSE;
}
if (user_access('administer salesforce mapping')) {
$sfapi = salesforce_get_api();
return $sfapi
->isAuthorized();
}
return FALSE;
}