function userpoints_service_view_access in User Points 7
Same name and namespace in other branches
- 7.2 userpoints_service/userpoints_service.inc \userpoints_service_view_access()
Access callback for viewing points of users.
1 string reference to 'userpoints_service_view_access'
- userpoints_service_services_resources in ./
userpoints_service.module - Implementation of hook_services_resources().
File
- ./
userpoints_service.inc, line 11 - Callbacks and access callbacks for userpoints services integration.
Code
function userpoints_service_view_access($uid = NULL) {
global $user;
return user_access('view userpoints') || $uid && user_access('view own userpoints') && $user->uid == $uid;
}