Only admins can delete blog posts
This commit is contained in:
parent
f9c2481499
commit
19034f5b69
|
@ -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…
Reference in New Issue
Block a user