Skip to content

Commit

Permalink
fix(core): use common allow/deny rules to comply with revised alow/de…
Browse files Browse the repository at this point in the history
…ny package (Meteor 3.1.1+)
  • Loading branch information
jankapunkt committed Feb 4, 2025
1 parent 24310c4 commit 1ce424a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions package/collection2/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,9 +675,9 @@ function getArgumentsAndValidationContext(methodName, args, async) {

if (Meteor.isFibersDisabled) {
Object.assign(allow, {
insertAsync: allow.insert,
updateAsync: allow.update,
removeAsync: allow.remove
insert: allow.insert,
update: allow.update,
remove: allow.remove
});
}

Expand Down Expand Up @@ -754,8 +754,8 @@ function getArgumentsAndValidationContext(methodName, args, async) {

if (Meteor.isFibersDisabled) {
Object.assign(firstDeny, {
insertAsync: firstDeny.insert,
updateAsync: firstDeny.update
insert: firstDeny.insert,
update: firstDeny.update
});
}

Expand Down Expand Up @@ -829,8 +829,8 @@ function getArgumentsAndValidationContext(methodName, args, async) {

if (Meteor.isFibersDisabled) {
Object.assign(secondDeny, {
insertAsync: secondDeny.insert,
updateAsync: secondDeny.update
insert: secondDeny.insert,
update: secondDeny.update
});
}

Expand Down

0 comments on commit 1ce424a

Please sign in to comment.