function _services_raw_user_access in Services Client 7.2
Same name and namespace in other branches
- 7 services_raw/services_raw.inc \_services_raw_user_access()
Determine whether user has access to node resource and raw node_save.
Parameters
$op: Operation
$args: Additional arguments passed to call
Return value
bool
1 string reference to '_services_raw_user_access'
- _services_raw_services_resources in services_raw/
services_raw.inc - Provides API definition of provided services objects and operations.
File
- services_raw/
services_raw.inc, line 695 - Custom services definition and implementation of all callbacks.
Code
function _services_raw_user_access($op = 'view', $args = array()) {
// Load original node resource
module_load_include('inc', 'services', 'resources/user_resource');
// Check access
$result = user_access('access raw user_save') && _user_resource_access($op, $args);
return $result;
}