Skip to content

Commit 3df235a

Browse files
committed
Fix the "Visible to everyone" option
The selected value was ignored, always visible to everyone.
1 parent ecef61c commit 3df235a

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)