Fix #4982: Add route to remove a post from a favorite group
This commit is contained in:
@@ -17,6 +17,10 @@ class FavoriteGroupPolicy < ApplicationPolicy
|
||||
update?
|
||||
end
|
||||
|
||||
def remove_post?
|
||||
update?
|
||||
end
|
||||
|
||||
def can_enable_privacy?
|
||||
record.creator.is_gold?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user