public function pcp_handler_field_profile_completeness::access in Profile Complete Percent 7
Check access. Use the Profile2 permissions.
Overrides views_handler::access
File
- includes/
pcp_handler_field_profile_completeness.inc, line 43 - Handler for the 'Profile: completeness' field. This is for Profile2 profiles.
Class
- pcp_handler_field_profile_completeness
- @file Handler for the 'Profile: completeness' field. This is for Profile2 profiles.
Code
public function access() {
$bundle = $this->options['bundle'];
return user_access('administer profiles') || user_access("view any {$bundle} profile");
}