Przeglądaj źródła

added admin check for displaying locked rooms on dashboard

Akira 9 lat temu
rodzic
commit
ccd95ebef9
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/client/client.js

+ 1 - 1
app/client/client.js

@@ -355,7 +355,7 @@ 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){
+                if($(el).text() === room.display && Meteor.user().profile.rank !== "admin"){
                     $(el).parent().css("display", "none");
                 }
             })