Adição do Usuario Externo e Correção da data no dashboard
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
<%= current_user.admin? ? 'bg-orange-500 text-black' :
|
||||
current_user.gerente? ? 'bg-orange-800 text-white' :
|
||||
current_user.operador? ? 'bg-gray-700 text-white' :
|
||||
current_user.externo? ? 'bg-blue-900 text-blue-200 border border-blue-500' :
|
||||
'bg-gray-900 text-orange-400 border border-orange-500' %>">
|
||||
<%= current_user.role_label %>
|
||||
</span>
|
||||
@@ -33,9 +34,13 @@
|
||||
<%# Navegação %>
|
||||
<nav class="px-3 py-4 space-y-1 flex-1 overflow-y-auto">
|
||||
|
||||
<%# Dashboard — admin/gerente/operador %>
|
||||
<%# Dashboard — admin/gerente/operador/externo (todos menos motorista) %>
|
||||
<% unless current_user.motorista? %>
|
||||
<%= nav_link_to '📊 Dashboard', dashboard_path %>
|
||||
<% end %>
|
||||
|
||||
<%# Consolidações — só quem pode consolidar (exclui o externo) %>
|
||||
<% if current_user.pode_consolidar? %>
|
||||
<%= nav_link_to '📦 Consolidações', consolidacoes_path %>
|
||||
<%= nav_link_to '📁 Arquivadas', arquivadas_consolidacoes_path %>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user