mirror of
https://github.com/wekan/wekan.git
synced 2026-02-09 17:54:21 +01:00
Reverted New UI Design of WeKan v8.29 and added more fixes and performance improvements.
Thanks to xet7 !
This commit is contained in:
parent
d152d8fc1b
commit
1b8b8d2eef
196 changed files with 17659 additions and 10028 deletions
22
server/attachmentMigrationStatus.js
Normal file
22
server/attachmentMigrationStatus.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { Mongo } from 'meteor/mongo';
|
||||
|
||||
// Server-side collection for attachment migration status
|
||||
export const AttachmentMigrationStatus = new Mongo.Collection('attachmentMigrationStatus');
|
||||
|
||||
// Allow/Deny rules
|
||||
// This collection is server-only and should not be modified by clients
|
||||
// Allow server-side operations (when userId is undefined) but deny all client operations
|
||||
if (Meteor.isServer) {
|
||||
AttachmentMigrationStatus.allow({
|
||||
insert: (userId) => !userId,
|
||||
update: (userId) => !userId,
|
||||
remove: (userId) => !userId,
|
||||
});
|
||||
}
|
||||
|
||||
// Create indexes for better query performance
|
||||
Meteor.startup(() => {
|
||||
AttachmentMigrationStatus._collection.createIndexAsync({ boardId: 1 });
|
||||
AttachmentMigrationStatus._collection.createIndexAsync({ userId: 1, boardId: 1 });
|
||||
AttachmentMigrationStatus._collection.createIndexAsync({ updatedAt: -1 });
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue