app/policies/leader_chat_message_policy.rb
class LeaderChatMessagePolicy < ApplicationPolicy
include GroupPermissionsHelpers
def update?
leader? && is_owner?
end
alias_method :create?, :update?
alias_method :destroy?, :update?
class Scope < Scope
def resolve
scope.visible_for(user)
end
end
end