function _jdrupal_resource_user_access in jDrupal 7
Checks to see if the user has access to a permission.
Return value
boolean Bool indicating whether or not the user has access to the permission.
See also
File
- ./
jdrupal.resource.inc, line 110 - This file implements the jdrupal service resource call back functions.
Code
function _jdrupal_resource_user_access($data) {
if (!isset($data['permission'])) {
return services_error(t('Missing argument permission.'), 406);
}
return user_access($data['permission']);
}