fix toggle contact should only be used by authenticated user
This commit is contained in:
parent
40299cbf34
commit
a021bba811
|
@ -203,6 +203,7 @@ def index():
|
|||
|
||||
|
||||
@dashboard_bp.route("/contacts/<int:contact_id>/toggle", methods=["POST"])
|
||||
@login_required
|
||||
def toggle_contact(contact_id):
|
||||
"""
|
||||
Block/Unblock contact
|
||||
|
|
Loading…
Reference in a new issue