def hue_permission_required(action, app):
  def decorator(view_func):
    @wraps(view_func)
    def decorated(request, *args, **kwargs):
      if not request.user.has_hue_permission(action, app):
        raise PopupException(_("Permission denied (%(action)s/%(app)s).") % {'action': action, 'app': app})
      return view_func(request, *args, **kwargs)
    return decorated
  return decorator
Returns a string of the hexdigest of the given plaintext password and salt
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/decorators.py/hue_permission_required--crossover with--dataset/ETHPy150Open aino/django-primate/primate/auth/helpers.py/get_hexdigest