summaryrefslogtreecommitdiff
path: root/app/models/chat_room.rb
diff options
context:
space:
mode:
authorDavid Gay <david@davidgay.org>2021-05-22 14:32:38 -0400
committerDavid Gay <david@davidgay.org>2021-05-22 14:32:44 -0400
commit88bd4f77db3a4372c118a9faef613615db66bc52 (patch)
treec0ad67b0cdde98e58199052198c9b4f1c45a85f2 /app/models/chat_room.rb
parent2dd5608409f0a506cd2a682107d9be302cec8079 (diff)
Titles
Diffstat (limited to 'app/models/chat_room.rb')
-rw-r--r--app/models/chat_room.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/chat_room.rb b/app/models/chat_room.rb
index 17e3f19..f1e9a24 100644
--- a/app/models/chat_room.rb
+++ b/app/models/chat_room.rb
@@ -14,7 +14,7 @@ class ChatRoom < ApplicationRecord
}
def self.accessible_to(user)
- all.select { |x| x.accessible_to?(user) }
+ all.select { |x| x.accessible_to?(user) && x.gid != "achievement" }
end
def accessible_to?(user)