Fix #4982: Add route to remove a post from a favorite group

This commit is contained in:
evazion
2022-05-02 15:43:44 -05:00
parent d2502a0c40
commit 17ffe3590a
5 changed files with 47 additions and 0 deletions

View File

@@ -17,6 +17,10 @@ class FavoriteGroupPolicy < ApplicationPolicy
update?
end
def remove_post?
update?
end
def can_enable_privacy?
record.creator.is_gold?
end