You are here

function _drupalgap_resource_access in DrupalGap 6

Same name and namespace in other branches
  1. 7.2 drupalgap.resource.inc \_drupalgap_resource_access()
  2. 7 drupalgap.resource.inc \_drupalgap_resource_access()

Determines whether the current user can access a drupalgap resource.

Parameters

string $op: String indicating which operation to check access for.

array $args: Array arguments passed through from the original request.

Return value

boolean Boolean indicating whether or not the user has access to the resource.

See also

node_access()

1 string reference to '_drupalgap_resource_access'
drupalgap_services_resources in ./drupalgap.services.inc
Defines function signatures for resources available to services.

File

./drupalgap.resource.inc, line 21
This file implements the DrupalGap service resource call back functions.

Code

function _drupalgap_resource_access($op = 'view', $args = array()) {
  return user_access($op);
}