Skip to content

Commit

Permalink
add csrf exempt to locks
Browse files Browse the repository at this point in the history
  • Loading branch information
n00rsy committed Jun 5, 2024
1 parent 498fa2b commit e3a61d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pybossa/view/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -4264,6 +4264,7 @@ def get_locked_tasks(project, task_id=None):
@blueprint.route('/<short_name>/locks/', methods=['GET'], defaults={'task_id': ''})
@blueprint.route('/<short_name>/locks/<int:task_id>/', methods=['GET'])
@login_required
@csrf.exempt
@admin_or_subadmin_required
def locks(short_name, task_id):
"""View locked task(s) for a project."""
Expand Down

0 comments on commit e3a61d2

Please sign in to comment.