Fix the user sieve script generation

master
kaiyou 6 years ago
parent 4d25083847
commit ca6c0bc8fd

@ -122,7 +122,7 @@ def dovecot_quota(ns, user_email):
def dovecot_sieve(script, user_email): def dovecot_sieve(script, user_email):
user = models.User.query.get(user_email) or flask.abort(404) user = models.User.query.get(user_email) or flask.abort(404)
if script == "default": if script == "default":
return flask.jsonify(flask.render_template("default.sieve")) return flask.jsonify(flask.render_template("default.sieve", user=user))
else: else:
flask.abort(404) flask.abort(404)

Loading…
Cancel
Save