You are here

function node_service_save_access in Services 5

Same name and namespace in other branches
  1. 6 services/node_service/node_service.inc \node_service_save_access()
  2. 6.2 services/node_service/node_service.inc \node_service_save_access()
  3. 7 services/node_service/node_service.inc \node_service_save_access()
1 string reference to 'node_service_save_access'
node_service_service in services/node_service/node_service.module
Implementation of hook_service().

File

services/node_service/node_service.module, line 152
The module which exposes services related to nodes

Code

function node_service_save_access($node) {
  if (isset($node['nid'])) {
    return node_access('update', $node);
  }
  return node_access('create', $node['type']);
}