Skip to content

Commit ce6e0f9

Browse files
committed
allow wetlab admin to see artifacts
1 parent bbdadff commit ce6e0f9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

qiita_pet/handlers/artifact_handlers/base_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def check_artifact_access(user, artifact):
4141
QiitaHTTPError
4242
If the user doesn't have access to the given artifact
4343
"""
44-
if user.level == 'admin':
44+
if user.level in ('admin', 'wetlab admin'):
4545
return
4646
if artifact.visibility != 'public':
4747
study = artifact.study

qiita_pet/templates/artifact_ajax/artifact_summary.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ <h4 style="color: #FF2222;">This artifact is being deleted</h4>
143143

144144
{% if artifact_type == 'BIOM' and not is_from_analysis %}
145145
<input type="button" class="btn btn-default btn-sm" value="Add to Analysis" onclick="send_samples_to_analysis(this, [{{artifact_id}}]);">
146-
{% else %}
146+
{% elif artifact_type != 'job-output-folder' %}
147147
<a class="btn btn-default btn-sm" id="process-btn"><span class="glyphicon glyphicon-play"></span> Process</a>
148148
{% end %}
149149

@@ -182,7 +182,7 @@ <h4 style="color: #FF2222;">This artifact is being deleted</h4>
182182
</div>
183183
</div>
184184

185-
{% if files %}
185+
{% if files and artifact_type != 'job-output-folder' %}
186186
<div class='row'>
187187
<div class='col-md-12'>
188188
<b>Available files:</b>

0 commit comments

Comments
 (0)