Fixed incorrect showing of favorite groups
This commit is contained in:
@@ -237,4 +237,8 @@ class FavoriteGroup < ApplicationRecord
|
||||
def editable_by?(user)
|
||||
creator_id == user.id
|
||||
end
|
||||
|
||||
def viewable_by?(user)
|
||||
creator_id == user.id || !creator.hide_favorites?
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user