We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9021ae3 commit 2803a9dCopy full SHA for 2803a9d
qiita_pet/handlers/study_handlers/edit_handlers.py
@@ -198,8 +198,8 @@ def post(self, study=None):
198
if study:
199
# Check study and user access
200
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':
+ # If the study is public or private, we use the short version
+ if the_study.status in {'public', 'private'}:
203
form_factory = StudyEditorForm
204
205
# Get the form data from the request arguments
0 commit comments