def _has_impersonation_perm(user):
  return user.is_superuser and user.has_hue_permission(action="impersonate", app="security")
dataset/ETHPy150Open cloudera/hue/apps/security/src/security/views.py/_has_impersonation_perm/operator `or` -> `and`