mirror of
https://github.com/wekan/wekan.git
synced 2026-02-25 09:24:08 +01:00
Removed old models files that caused problems with login.
Thanks to xet7 !
This commit is contained in:
parent
2727651897
commit
50f3316088
2 changed files with 0 additions and 147 deletions
|
|
@ -1,46 +0,0 @@
|
|||
import { ReactiveCache } from '/imports/reactiveCache';
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { FilesCollection } from 'meteor/ostrio:files';
|
||||
import { isFileValid } from './fileValidation';
|
||||
import { createBucket } from './lib/grid/createBucket';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
if (Meteor.isServer) {
|
||||
AvatarsOld = createBucket('cfs_gridfs.avatars');
|
||||
|
||||
/*
|
||||
|
||||
AvatarsOld = new FS.Collection('avatars', {
|
||||
stores: [new FS.Store.GridFS('avatars')],
|
||||
filter: {
|
||||
maxSize: 72000,
|
||||
allow: {
|
||||
contentTypes: ['image/*'],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
function isOwner(userId, file) {
|
||||
return userId && userId === file.userId;
|
||||
}
|
||||
|
||||
AvatarsOld.allow({
|
||||
insert: isOwner,
|
||||
update: isOwner,
|
||||
remove: isOwner,
|
||||
download() {
|
||||
return true;
|
||||
},
|
||||
fetch: ['userId'],
|
||||
});
|
||||
|
||||
AvatarsOld.files.before.insert((userId, doc) => {
|
||||
doc.userId = userId;
|
||||
});
|
||||
|
||||
*/
|
||||
|
||||
};
|
||||
|
||||
export default AvatarsOld;
|
||||
Loading…
Add table
Add a link
Reference in a new issue