function views_handler_field_contact_link::access
An example of field level access control.
We must override the access method in the parent class, as that requires the 'access user profiles' permission, which the contact form does not.
Overrides views_handler_field_user_link::access
File
-
modules/
contact/ views_handler_field_contact_link.inc, line 31
Class
- views_handler_field_contact_link
- A field that links to the user contact page, if access is permitted.
Code
public function access() {
return user_access('access user contact forms');
}