demarches-normaliennes/app/controllers/users/siret_controller.rb
Xavier J dd09a38bbb User can begin a new dossier with a procedure archived
Administrateur can see archived procedure
2015-11-27 10:39:05 +01:00

9 lines
286 B
Ruby

class Users::SiretController < UsersController
def index
@siret = params[:siret] || current_user.siret
redirect_to(users_path(procedure_id: params['procedure_id'], siret: @siret))
rescue ActionController::UrlGenerationError
redirect_to(new_user_session_path)
end
end