Commit 3d1ae8b7 authored by Fabrício Ceschin's avatar Fabrício Ceschin
Browse files

Hotfix: temporary remove method valid_profissional_associations

parent 3da5e220
......@@ -11,7 +11,7 @@
class AgendamentosController < ApplicationController
before_action :authenticate_profissional!, :except => [:update_lembrete, :receipt]
load_and_authorize_resource :except => [:local_atendimento, :profissionais, :update_lembrete]
before_action :valid_profissional_associations, :except => [:update_lembrete]
#before_action :valid_profissional_associations, :except => [:update_lembrete]
before_action :agendamento_valido, :only => [:edit, :update]
before_action :load_profissionais, :only => [:index, :new, :create, :update, :edit]
before_action :auth_profissional_agendamento_read, :only => [:show]
......
......@@ -2,8 +2,8 @@
class CadastrosController < ApplicationController
before_action :authenticate_profissional!
load_and_authorize_resource
before_action :valid_profissional_associations, :only =>
[:escalas,:atendimento,:atendimento_update]
#before_action :valid_profissional_associations, :only =>
#[:escalas,:atendimento,:atendimento_update]
before_action :escala_valida_para_alteracao, :only =>
[:escalas_prefeitura_edit,:escalas_prefeitura_update]
......
......@@ -17,7 +17,7 @@
class EscalasController < ApplicationController
before_action :authenticate_profissional!
load_and_authorize_resource
before_action :valid_profissional_associations
#before_action :valid_profissional_associations
before_action :escala_valida_para_alteracao, :only => [:edit,:update]
# Usa uma transação do banco de dados para salvar as
......
......@@ -2,8 +2,8 @@
class ProfissionaisController < ApplicationController
before_action :authenticate_profissional!
load_and_authorize_resource
before_action :valid_profissional_associations, :only =>
[:escalas,:atendimento,:atendimento_update]
#before_action :valid_profissional_associations, :only =>
#[:escalas,:atendimento,:atendimento_update]
before_action :escala_valida_para_alteracao, :only =>
[:escalas_prefeitura_edit,:escalas_prefeitura_update]
after_action :clear_session, :except => [:new, :create]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment