Commit 9941bfaf authored by Mateus Ravedutti's avatar Mateus Ravedutti
Browse files

Fix dependant create and update 2

parent 947054e8
......@@ -114,8 +114,6 @@ class DependantsController < ApplicationController
params[:citizen][:address_street] = nil
end
3121
if @currentProfessionalServicePlace != nil && @currentProfessionalServicePlace.role != "adm_c3sl" && params[:citizen][:city_id].to_i != @currentCityHall.city_id.to_i
return redirect_to :back, alert: "Não é possível criar cidadãos para outra prefeitura."
end
......
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