Browse Source

Fixed commented out bug with chat

theflametrooper 9 năm trước cách đây
mục cha
commit
348048fe1d
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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);
             }