mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Renaming: opaque->nopaque
This commit is contained in:
		@@ -39,7 +39,7 @@ def download_job_input(job_id, job_input_id):
 | 
			
		||||
    if not (job_input.job.creator == current_user
 | 
			
		||||
            or current_user.is_administrator()):
 | 
			
		||||
        abort(403)
 | 
			
		||||
    dir = os.path.join(current_app.config['OPAQUE_STORAGE_DIRECTORY'],
 | 
			
		||||
    dir = os.path.join(current_app.config['NOPAQUE_STORAGE'],
 | 
			
		||||
                       job_input.dir)
 | 
			
		||||
    return send_from_directory(as_attachment=True, directory=dir,
 | 
			
		||||
                               filename=job_input.filename)
 | 
			
		||||
@@ -54,7 +54,7 @@ def download_job_result(job_id, job_result_id):
 | 
			
		||||
    if not (job_result.job.creator == current_user
 | 
			
		||||
            or current_user.is_administrator()):
 | 
			
		||||
        abort(403)
 | 
			
		||||
    dir = os.path.join(current_app.config['OPAQUE_STORAGE_DIRECTORY'],
 | 
			
		||||
    dir = os.path.join(current_app.config['NOPAQUE_STORAGE'],
 | 
			
		||||
                       job_result.dir)
 | 
			
		||||
    return send_from_directory(as_attachment=True, directory=dir,
 | 
			
		||||
                               filename=job_result.filename)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user