You are here

function masquerade_handler_field_user::access in Masquerade Extras 6

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

File

masquerade_views/handlers/masquerade_handler_field_user.inc, line 58
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');
}