Explorar o código

added admin check for displaying locked rooms on dashboard

Akira %!s(int64=9) %!d(string=hai) anos
pai
achega
ccd95ebef9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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");
                 }
             })