Only admins can delete blog posts

pull/2/head
Noah 2014-03-28 01:24:41 -07:00
parent f9c2481499
commit 19034f5b69
1 changed files with 1 additions and 0 deletions

View File

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