You are here

function _drupalgap_resource_access in DrupalGap 7.2

Same name and namespace in other branches
  1. 6 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()

File

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

Code

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