Only allow resubmission of accessible jobs
This commit is contained in:
parent
c2bdab5b75
commit
b4e1b912ce
|
@ -242,6 +242,8 @@ def resubmit_GET(job_id):
|
|||
job = Job.query.filter(Job.id == job_id).one_or_none()
|
||||
if not job:
|
||||
abort(404)
|
||||
if not get_access(job):
|
||||
abort(404)
|
||||
session["manifest"] = job.manifest
|
||||
if isinstance(job.note, str) and len(job.note.splitlines()) == 1:
|
||||
note = addsuffix(job.note, "(resubmitted)")
|
||||
|
|
Loading…
Reference in New Issue