You are here

function masquerade_handler_field_user::access in Masquerade Extras 7

Same name and namespace in other branches
  1. 6.2 masquerade_views/handlers/masquerade_handler_field_user.inc \masquerade_handler_field_user::access()
  2. 6 masquerade_views/handlers/masquerade_handler_field_user.inc \masquerade_handler_field_user::access()
  3. 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');
}