Skip to content

Commit 13e54c1

Browse files
committed
Merge pull request #1211 from squirrelo/issue-1164
Use short form for private studies too. Fix #1164
2 parents 9021ae3 + d686dfa commit 13e54c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiita_pet/handlers/study_handlers/edit_handlers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ def post(self, study=None):
198198
if study:
199199
# Check study and user access
200200
the_study = self._check_study_exists_and_user_access(study)
201-
# If the study is public, we use the short version of the form
202-
if the_study.status == 'public':
201+
# If the study is not sandbox, we use the short version
202+
if the_study.status != 'sandbox':
203203
form_factory = StudyEditorForm
204204

205205
# Get the form data from the request arguments

0 commit comments

Comments
 (0)