function _drupalgap_resource_access in DrupalGap 7
Same name and namespace in other branches
- 6 drupalgap.resource.inc \_drupalgap_resource_access()
- 7.2 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
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 29 - This file implements the DrupalGap service resource call back functions.
Code
function _drupalgap_resource_access($op = 'view', $args = array()) {
return user_access($op);
}