Commit 6dace449 authored by HERBERT Ryan's avatar HERBERT Ryan

Save analysis

Apply save analysis permission to save analysis and add checkbox in
group/info.html to add permissions save to a group
parent cd5bb759
......@@ -429,7 +429,7 @@ def save_analysis():
if not "sample_set_id" in request.vars :
error += "It is currently not possible to save an analysis on a comparison of samples, "
elif not auth.can_modify_sample_set(request.vars['sample_set_id']) :
elif not auth.can_save_sample_set(request.vars['sample_set_id']) :
error += "you do not have permission to save changes on this sample set"
if error == "" :
......
......@@ -33,6 +33,9 @@ query = db(
run vidjil
<input type="checkbox" name="sample_set" onclick="db.group_rights(this.checked, this.name, 'run', {{=group.id}});" {{if auth.has_permission('run', 'sample_set', group_id=group.id) :}}{{="checked"}}{{pass}}>
save analysis
<input type="checkbox" name="sample_set" onclick="db.group_rights(this.checked, this.name, 'save', {{=group.id}});" {{if auth.has_permission('save', 'sample_set', group_id=group.id) :}}{{="checked"}}{{pass}}>
real info
<input type="checkbox" name="sample_set" onclick="db.group_rights(this.checked, this.name, 'anon', {{=group.id}});" {{if auth.has_permission('anon', 'sample_set', group_id=group.id) :}}{{="checked"}}{{pass}}>
......
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