Use number literals for booleans in filter conditions.

SQL Server treats literal "false" and "true" as column names. This is probably the same for any other database type that does not have a true "boolean" storage.

Refs: https://github.com/rainlab/blog-plugin/pull/526#issuecomment-716299459
This commit is contained in:
Ben Thomson 2020-10-26 15:32:13 +08:00
parent 5dfe1ff748
commit 866af34b1a
No known key found for this signature in database
GPG Key ID: 8BDB18DD0909BE22
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@ scopes:
label: backend::lang.user.superuser
type: switch
conditions:
- is_superuser = false
- is_superuser = true
- is_superuser = 0
- is_superuser = 1
login_date:
label: backend::lang.user.last_login