Peter Clement
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
packages/builder/src/components/backend/DataTable/modals/EditRoles.svelte
-
packages/server/src/api/controllers/row/internalSearch.js
|
|
|
@ -6,7 +6,7 @@ |
|
|
|
import ErrorsBox from "components/common/ErrorsBox.svelte" |
|
|
|
import { roles } from "stores/backend" |
|
|
|
|
|
|
|
const BASE_ROLE = { _id: "", inherits: "BASIC", permissionId: "Read/Write" } |
|
|
|
const BASE_ROLE = { _id: "", inherits: "BASIC", permissionId: "write" } |
|
|
|
|
|
|
|
let basePermissions = [] |
|
|
|
let selectedRole = BASE_ROLE |
|
|
|
|
|
|
|
@ -191,7 +191,8 @@ class QueryBuilder { |
|
|
|
} |
|
|
|
if (this.query.equal) { |
|
|
|
build(this.query.equal, (key, value) => { |
|
|
|
if (!value) { |
|
|
|
// 0 evaluates to false, which means we would return all rows if we don't check it
|
|
|
|
if (!value && value !== 0) { |
|
|
|
return null |
|
|
|
} |
|
|
|
return `${key}:${builder.preprocess(value, allPreProcessingOpts)}` |
|
|
|
|