diff --git a/roles/tests/serverAsync.js b/roles/tests/serverAsync.js index b6b1645..278cab7 100644 --- a/roles/tests/serverAsync.js +++ b/roles/tests/serverAsync.js @@ -16,7 +16,7 @@ Meteor.publish('client_assignments', async () => { }) // To allow inserting on the client, needed for testing. -if (Meteor.release.split('@')[1][1] === '2') { +if (Meteor.release.split('@')[1][0] === '2') { Meteor.roleAssignment.allow({ insert () { return true }, update () { return true },