def METHOD_NAME(request, is_redirect=False):
  if not request.user.has_hue_permission(action="access", app='indexer'):
    raise PopupException(_('Missing permission.'), error_code=403)
  return render('collections.mako', request, {
    'is_embeddable': request.GET.get('is_embeddable', False),
  })