Przeglądaj źródła

Fixed commented out bug with chat

theflametrooper 9 lat temu
rodzic
commit
348048fe1d
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      app/server/a.js

+ 3 - 3
app/server/a.js

@@ -56,11 +56,11 @@ Meteor.updatedMethods = function(methods) {
                         if (Meteor.userId() || Meteor.user()) {
                             throw new Meteor.Error(401, "Invalid permissions.");
                         }
-                    } /*else if (requirement === "noMute") {
-                        if (isMuted()) {
+                    } else if (requirement === "noMute") {
+                        if (Meteor.isMuted()) {
                             throw new Meteor.Error(401, "Invalid permissions.");
                         }
-                    }*/
+                    }
                 });
                 return methods[methodName].code.apply(this, arguments);
             }