Skip to content

Commit

Permalink
Stricter bool type for activity_streams_email_notifications needed fo…
Browse files Browse the repository at this point in the history
…r sqlalchemy 1.3
  • Loading branch information
David Read committed May 21, 2019
1 parent f337aac commit db3e266
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ckan/logic/schema.py
Expand Up @@ -394,7 +394,7 @@ def default_user_schema(
ignore_missing, unicode_safe, name_validator, user_name_validator,
user_password_validator, user_password_not_empty,
ignore_not_sysadmin, not_empty, email_validator,
user_about_validator, ignore):
user_about_validator, ignore, boolean_validator):
return {
'id': [ignore_missing, unicode_safe],
'name': [
Expand All @@ -409,7 +409,8 @@ def default_user_schema(
'sysadmin': [ignore_missing, ignore_not_sysadmin],
'apikey': [ignore],
'reset_key': [ignore],
'activity_streams_email_notifications': [ignore_missing],
'activity_streams_email_notifications': [ignore_missing,
boolean_validator],
'state': [ignore_missing],
}

Expand Down

0 comments on commit db3e266

Please sign in to comment.