Commit 380f50ad authored by Marc Duez's avatar Marc Duez

server : run_request > user can run request only with authorized config

parent f4b1fd9d
......@@ -56,6 +56,9 @@ def run_request():
if not auth.has_permission('admin', 'patient', id_patient) :
error += "you do not have permission to launch process for this patient ("+str(id_patient)+"), "
if not auth.has_permission('admin', 'config', id_config) :
error += "you do not have permission to launch process for this config ("+str(id_config)+"), "
if error == "" :
res = schedule_run(request.vars["sequence_file_id"], request.vars["config_id"])
return gluon.contrib.simplejson.dumps(res, separators=(',',':'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment