Skip to content

Self-hosted project management for devs and their clients: tickets, time tracking, docs and meetings, with an AI assistant that cites its sources. AGPL-3.0.

267 B
Raw Blame
# frozen_string_literal: true

class PowerSearchPolicy < Struct.new(:user, :power_search)
  def index?
    # All authenticated users can use the search
    user.present?
  end

  def execute?
    # All authenticated users can run searches
    user.present?
  end
end