Commit c40fa548 authored by Mathieu Giraud's avatar Mathieu Giraud Committed by Vidjil Team
Browse files

patient/info.html: display the 'add file' button only when the user has the corresponding access

parent 61d7365e
......@@ -107,8 +107,8 @@
<div class="db_block">
<div class="db_block_left">
{{if auth.has_permission("upload", "sequence_file") :}}
<span class="button2" onclick="'file/add', { 'id' : '{{=request.vars["id"]}}' } )"> add file </span>
{{if auth.has_permission('admin', 'patient', request.vars["id"]):}}
<span class="button2" onclick="'file/add', { 'id' : '{{=request.vars["id"]}}' } )"> + add file </span>
{{if not auth.has_permission("run", "results_file") :}}
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