function commerce_license_sync_access in Commerce License 7
Access callback for the commerce_license_plugin_access_sync access plugin.
Determines if the advancedqueue module is enabled, and the user has access to administer the licenses.
1 call to commerce_license_sync_access()
- commerce_license_plugin_access_sync::access in includes/
views/ plugins/ commerce_license_plugin_access_sync.inc - Determine if the current user has access or not.
1 string reference to 'commerce_license_sync_access'
- commerce_license_plugin_access_sync::get_access_callback in includes/
views/ plugins/ commerce_license_plugin_access_sync.inc - Determine the access callback and arguments.
File
- ./
commerce_license.module, line 274 - Provides a framework for selling access to local or remote resources.
Code
function commerce_license_sync_access($account = NULL) {
return module_exists('advancedqueue') && user_access('administer licenses', $account);
}