Commits

Udi Bauman committed c77cb38

fix invite bug

Comments (0)

Files changed (1)

 
 Meteor.publish("maps", function(which, mapId, contextId) {
     
+	if (mapId) {
+		// TODO add context for security
+	    return Maps.find({
+                           _id:mapId
+					});
+	}
+	else {
+			
 	if (!which) which = "mine";
 	if (which == "mine") {
 	    return Maps.find({
         },{sort: {last_update:-1},limit:10});
 
     }
+}
 });
 
 Meteor.publish("stories", function(mapId) {