Only admins can delete blog posts

This commit is contained in:
Noah 2014-03-28 01:24:41 -07:00
parent f9c2481499
commit 19034f5b69

View File

@ -192,6 +192,7 @@ def update():
@mod.route("/delete", methods=["GET", "POST"])
@admin_required
def delete():
"""Delete a blog post."""
post_id = request.args.get("id")