mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Improve wekan performance #837
This commit is contained in:
parent
cd70076af2
commit
cd6317cedb
4 changed files with 9 additions and 1 deletions
|
|
@ -26,6 +26,9 @@ if (Meteor.isServer) {
|
|||
function isAuthor(userId, doc, fieldNames = []) {
|
||||
return userId === doc.userId && fieldNames.indexOf('userId') === -1;
|
||||
}
|
||||
Meteor.startup(() => {
|
||||
UnsavedEditCollection._collection._ensureIndex({ userId: 1 });
|
||||
});
|
||||
UnsavedEditCollection.allow({
|
||||
insert: isAuthor,
|
||||
update: isAuthor,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue