class ConversationPolicy < ApplicationPolicy
  def show?
    @record.users.include? @user
  end
  class Scope < Scope
    def resolve
      scope
    end
  end
end

class ConversationPolicy < ApplicationPolicy
  def show?
    @record.users.include? @user
  end

  def create?
    @record.initiator == @user
  end
  class Scope < Scope
    def resolve
      scope
    end
  end
end

Add a pundit policy to authorize conversation creation
Add a pundit policy to authorize conversation creation
