Cobbled together some semblance of an item library UI
This commit is contained in:
@@ -23,3 +23,18 @@ Meteor.publish("standardLibrarySpells", function(level){
|
||||
sort: {name: 1},
|
||||
});
|
||||
});
|
||||
|
||||
Meteor.publish("customLibraries", function(){
|
||||
userId = this.userId;
|
||||
return Libraries.find({
|
||||
$or: [
|
||||
{readers: userId},
|
||||
{writers: userId},
|
||||
{owner: userId},
|
||||
],
|
||||
});
|
||||
});
|
||||
|
||||
Meteor.publish("libraryItems", function(libraryId){
|
||||
return LibraryItems.find({library: libraryId});
|
||||
});
|
||||
|
||||
@@ -4,5 +4,6 @@ Meteor.publish("user", function(){
|
||||
username: 1,
|
||||
profile: 1,
|
||||
apiKey: 1,
|
||||
librarySubscriptions: 1,
|
||||
}});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user