You are here

function _services_raw_node_access in Services Client 7

Same name and namespace in other branches
  1. 7.2 services_raw/services_raw.inc \_services_raw_node_access()

Determine whether user has access to node resource and raw node_save.

Parameters

$op: Operation

$args: Additional arguments passed to call

1 string reference to '_services_raw_node_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 247
Custom services definition and implementation of all callbacks.

Code

function _services_raw_node_access($op = 'view', $args = array()) {

  // Load original node resource
  module_load_include('inc', 'services', 'resources/node_resource');

  // Check access
  return user_access('access raw node_save') && _node_resource_access($op, $args);
}