summaryrefslogtreecommitdiffstats
path: root/models/attachments.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/attachments.js')
-rw-r--r--models/attachments.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/models/attachments.js b/models/attachments.js
index fd03e6d2..4537e47c 100644
--- a/models/attachments.js
+++ b/models/attachments.js
@@ -4,7 +4,7 @@ Attachments = new FilesCollection({
storagePath: storagePath(),
debug: true, // FIXME: Remove debug mode
collectionName: 'attachments2',
- allowClientCode: false, // Disallow remove files from Client
+ allowClientCode: true, // FIXME: Permissions
});
if (Meteor.isServer) {
@@ -15,11 +15,11 @@ if (Meteor.isServer) {
// TODO: Permission related
// TODO: Add Activity update
// TODO: publish and subscribe
-// Meteor.publish('files.attachments.all', function () {
-// return Attachments.find().cursor;
-// });
+ Meteor.publish('attachments', function() {
+ return Attachments.find().cursor;
+ });
} else {
-// Meteor.subscribe('files.attachments.all');
+ Meteor.subscribe('attachments');
}
// ---------- Deprecated fallback ---------- //