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.

330 B
Raw Blame
# frozen_string_literal: true

# Gate for the documentation browsing area. Record is the Project; access is the
# new :documentation area (read to browse). Mirrors KnowledgePolicy's shape.
class DocumentationPolicy < ApplicationPolicy
  def index?
    ProjectPolicy.new(user, record).area_access?(:documentation, :read)
  end
end