pundit: convert favorite groups to pundit.
This commit is contained in:
@@ -160,14 +160,6 @@ class FavoriteGroup < ApplicationRecord
|
||||
post_ids.include?(post_id)
|
||||
end
|
||||
|
||||
def editable_by?(user)
|
||||
creator_id == user.id
|
||||
end
|
||||
|
||||
def viewable_by?(user)
|
||||
creator_id == user.id || is_public
|
||||
end
|
||||
|
||||
def self.available_includes
|
||||
[:creator]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user