def _sentry(request, component):
  return render("sentry.mako", request, {
      'initial': json.dumps({
          'component': component,
          'user': request.user.username,
          'sentry_provider': get_hive_sentry_provider(),
          'is_sentry_admin': request.user.groups.filter(name__in=get_sentry_server_admin_groups()).exists()
      }),
      'has_impersonation_perm': _has_impersonation_perm(request.user) or component == 'hive',
      'component': component
  })
dataset/ETHPy150Open cloudera/hue/apps/security/src/security/views.py/_sentry/operator `and` -> `or`