Browse Source

Only admins can delete blog posts

pull/2/head
Noah Petherbridge 8 years ago
parent
commit
19034f5b69
  1. 1
      rophako/modules/blog.py

1
rophako/modules/blog.py

@ -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")

Loading…
Cancel
Save