Skip to content

Commit a1fe45e

Browse files
authored
Merge pull request #912 from soroushj/fix-visible-to-everyone-option
Fix the "Visible to everyone" option
2 parents ecef61c + 3df235a commit a1fe45e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/booktype/apps/account/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def post(self, request, *args, **kwargs):
214214
book.author = data.get('author')
215215
book.license = license
216216
book.language = language
217-
book.hidden = (data.get('visible_to_everyone', None) == 'off')
217+
book.hidden = (data.get('visible_to_everyone', None) != 'on')
218218
book.description = data.get('description', '')
219219

220220
# STEP 2: Metadata

0 commit comments

Comments
 (0)