Upgrade to Meteor 2.3.4

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2021-06-25 14:11:53 +03:00 committed by Denis Perov
parent e6dc20f6c7
commit 40265144af
316 changed files with 5049 additions and 32549 deletions

View file

@ -1,26 +0,0 @@
Meteor.startup(() => {
// https://atmospherejs.com/lucasantoniassi/accounts-lockout
// server
if (Meteor.isServer) {
import { AccountsLockout } from 'meteor/wekan-accounts-lockout';
new AccountsLockout({
knownUsers: {
failuresBeforeLockout:
process.env.ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURES_BEFORE || 3,
lockoutPeriod: process.env.ACCOUNTS_LOCKOUT_KNOWN_USERS_PERIOD || 60,
failureWindow:
process.env.ACCOUNTS_LOCKOUT_KNOWN_USERS_FAILURE_WINDOW || 15,
},
unknownUsers: {
failuresBeforeLockout:
process.env.ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURES_BERORE || 3,
lockoutPeriod:
process.env.ACCOUNTS_LOCKOUT_UNKNOWN_USERS_LOCKOUT_PERIOD || 60,
failureWindow:
process.env.ACCOUNTS_LOCKOUT_UNKNOWN_USERS_FAILURE_WINDOW || 15,
},
}).startup();
}
});

View file

@ -77,6 +77,7 @@ Migrations.add('lowercase-board-permission', () => {
});
});
/*
// Security migration: see https://github.com/wekan/wekan/issues/99
Migrations.add('change-attachments-type-for-non-images', () => {
const newTypeForNonImage = 'application/octet-stream';
@ -106,6 +107,8 @@ Migrations.add('card-covers', () => {
Attachments.update({}, { $unset: { cover: '' } }, noValidateMulti);
});
*/
Migrations.add('use-css-class-for-boards-colors', () => {
const associationTable = {
'#27AE60': 'nephritis',

View file

@ -311,7 +311,7 @@ Meteor.publishRelations('board', function(boardId, isArchived) {
),
);
this.cursor(presences.find({ userId: { $in: memberIds } }));
//this.cursor(presences.find({ userId: { $in: memberIds } }));
}
},
);

View file

@ -1,9 +0,0 @@
import { FastRender } from 'meteor/staringatlights:fast-render';
FastRender.onAllRoutes(function() {
this.subscribe('boards');
});
FastRender.route('/b/:id/:slug', function({ id }) {
this.subscribe('board', id, false);
});