Add filter sensitive fields logic that apply CLPs\nAdd protectedFields CLP\nAdd defaults for protectedFields CLP\nFix tests

This commit is contained in:
awgeorge
2019-01-29 08:52:49 +00:00
committed by Arthur Cinader
parent b343de0c70
commit 0dec4931a0
7 changed files with 122 additions and 13 deletions

View File

@@ -630,7 +630,7 @@ RestQuery.prototype.runFind = function(options = {}) {
findOptions.op = options.op;
}
return this.config.database
.find(this.className, this.restWhere, findOptions)
.find(this.className, this.restWhere, findOptions, this.auth)
.then(results => {
if (this.className === '_User') {
for (var result of results) {