Skip to content

Commit 3d620b3

Browse files
committed
artifact.parents
1 parent d3d89c7 commit 3d620b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qiita_pet/handlers/artifact_handlers/base_handlers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ def artifact_summary_get_request(user, artifact_id):
134134
# Check if the artifact is editable by the given user
135135
study = artifact.study
136136
analysis = artifact.analysis
137-
if artifact_type == 'job-output-folder':
137+
# if is a folder and has no parents, it means that is an SPP job and
138+
# nobody should be able to change anything about it
139+
if artifact_type == 'job-output-folder' and not artifact.parents:
138140
editable = False
139141
else:
140142
editable = study.can_edit(user) if study else analysis.can_edit(user)

0 commit comments

Comments
 (0)