|
@@ -361,6 +361,18 @@ Template.dashboard.onCreated(function() {
|
|
Session.set("type", undefined);
|
|
Session.set("type", undefined);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
+Template.dashboard.onRendered(function(){
|
|
|
|
+ Rooms.find().fetch().forEach(function(room){
|
|
|
|
+ if(room.private === true){
|
|
|
|
+ $(".station h3").each(function(i, el){
|
|
|
|
+ if($(el).text() === room.display && Meteor.user().profile.rank !== "admin"){
|
|
|
|
+ $(el).parent().css("display", "none");
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+})
|
|
|
|
+
|
|
function executeCommand(command, params){
|
|
function executeCommand(command, params){
|
|
if (command === "help" || command === "commands") {
|
|
if (command === "help" || command === "commands") {
|
|
$('#helpModal').modal('show');
|
|
$('#helpModal').modal('show');
|