sumba 2.32.0 → 2.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extend/bajo/hook.js +1 -1
- package/package.json +1 -1
- package/wiki/CHANGES.md +1 -0
package/extend/bajo/hook.js
CHANGED
|
@@ -80,7 +80,7 @@ export async function applyAttribGuard ({ model, teamIds, options }) {
|
|
|
80
80
|
async function rebuildFilter (model, filter = {}, options = {}) {
|
|
81
81
|
const { isEmpty, get } = this.app.lib._
|
|
82
82
|
const { req } = options
|
|
83
|
-
const allowEmpty = !get(this, `app.${model.ns}.config.sumba.
|
|
83
|
+
const allowEmpty = !get(this, `app.${model.ns}.config.sumba.noEmptyQuery`, []).includes(model.name)
|
|
84
84
|
const hasSiteId = model.hasProperty('siteId')
|
|
85
85
|
const hasUserId = model.hasProperty('userId')
|
|
86
86
|
const hasTeamId = model.hasProperty('teamId')
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED