浏览代码

Quick fix.

KrisVos130 9 年之前
父节点
当前提交
77bfd9e931
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/client/scripts/routes.js

+ 1 - 1
app/client/scripts/routes.js

@@ -196,7 +196,7 @@ Router.route("/private/:name", {
             if (
                 (room.privacy === "private" && user !== undefined && user.profile !== undefined && (user.profile.rank === "admin" || user.profile.rank === "moderator")) ||
                 (user !== undefined && user.profile !== undefined && room.allowed.includes(Meteor.userId())) ||
-                room.privacy === "unlisted" ||
+                room.privacy !== "private" ||
                 room.owner === Meteor.userId()) {
                 Session.set("type", this.params.type);
                 this.render("privateRoom");