Skip to content

Commit 4e5021c

Browse files
committed
fixup! Adds count class level permission
1 parent 6ce062f commit 4e5021c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Controllers/DatabaseController.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,9 @@ DatabaseController.prototype.find = function(className, query, {
744744
const isMaster = acl === undefined;
745745
const aclGroup = acl || [];
746746
op = op || (typeof query.objectId == 'string' && Object.keys(query).length === 1 ? 'get' : 'find');
747-
op = (typeof count != 'undefined' ? 'count' : op);
747+
// Count operation if counting
748+
op = (count === true ? 'count' : op);
749+
748750
let classExists = true;
749751
return this.loadSchema()
750752
.then(schemaController => {

0 commit comments

Comments
 (0)