Skip to content

Commit

Permalink
Merge pull request #7 from smallhacks/dev
Browse files Browse the repository at this point in the history
Merge Dev to Master
  • Loading branch information
smallhacks authored Aug 22, 2018
2 parents ec913cf + 0d73e86 commit 4bbfc8f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/client/templates/index/index_student.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Template.indexStudent.helpers({
}
},
publicSpaces: function() {
return Spaces.find({permissions:{public:true}});
return Spaces.find({"permissions.public":true});
},
isLangSelected: function(lang) {
if (Session.get('lang')) {
Expand All @@ -109,7 +109,10 @@ Template.indexStudent.helpers({
if (lang == langSelected)
return 'selected';
}
}
},
isBox: function() {
return (Meteor.settings.public.isBox === "true")
}
});


2 changes: 1 addition & 1 deletion src/client/templates/index/index_teacher.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Template.indexTeacher.helpers({
return Spaces.find({userId:Meteor.userId()}, {sort: {submitted: -1}});
},
publicSpaces: function() {
return Spaces.find({permissions:{public:true}});
return Spaces.find({"permissions.public":true});
},
isLangSelected: function(lang) {
if (Session.get('lang')) {
Expand Down
2 changes: 1 addition & 1 deletion src/private/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "1.26c"
"version": "1.26e"
}
2 changes: 1 addition & 1 deletion src/server/publications.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Meteor.publish('allSpaces', function() {
});

Meteor.publish('publicSpaces', function(userId) {
return Spaces.find({permissions:{public:true}});
return Spaces.find({"permissions.public":true});
});

Meteor.publish('ownSpaces', function(userId) {
Expand Down
2 changes: 1 addition & 1 deletion src/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"mailPassword": "",
"mailServer": "",
"public" : {
"isBox": "false",
"isBox": "true",
"prefix": "XX",
"ga": {
"id": ""
Expand Down

0 comments on commit 4bbfc8f

Please sign in to comment.