function masquerade_handler_field_user::access in Masquerade Extras 7
Same name and namespace in other branches
- 6.2 masquerade_views/handlers/masquerade_handler_field_user.inc \masquerade_handler_field_user::access()
- 6 masquerade_views/handlers/masquerade_handler_field_user.inc \masquerade_handler_field_user::access()
- 7.2 masquerade_views/handlers/masquerade_handler_field_user.inc \masquerade_handler_field_user::access()
Prevent users that don't have permission to masquerade from accessing this function.
Overrides views_handler_field_user_link::access
File
- masquerade_views/
handlers/ masquerade_handler_field_user.inc, line 62 - Views field handler.
Class
- masquerade_handler_field_user
- Field handler that allows a link to be generated for a user so you may masquerade as them.
Code
function access() {
return user_access('masquerade as user');
}