You are here

function _jdrupal_resource_access in jDrupal 7

Determines whether the current user can access a jdrupal 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 '_jdrupal_resource_access'
jdrupal_services_resources in ./jdrupal.services.inc
Defines function signatures for resources available to services.

File

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

Code

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