Imṕlantação do dash board de acompanhamento diario das entregas

This commit is contained in:
2026-06-29 20:04:32 -03:00
parent 16032be620
commit 11531479f8
35 changed files with 848 additions and 0 deletions

View File

@@ -7,4 +7,9 @@ class DashboardPolicy < Struct.new(:user, :dashboard)
def index?
user.admin? || user.gerente?
end
# Dashboard de operações: todos menos motorista (mesma regra do dashboard HTML).
def operacoes?
!user.motorista?
end
end