2015-09-23 19:20:03 +02:00
|
|
|
class Users::SiretController < UsersController
|
2015-09-23 16:56:30 +02:00
|
|
|
def index
|
2015-11-20 18:14:52 +01:00
|
|
|
@siret = params[:siret] || current_user.siret
|
|
|
|
|
2015-11-27 10:39:05 +01:00
|
|
|
redirect_to(users_path(procedure_id: params['procedure_id'], siret: @siret))
|
|
|
|
rescue ActionController::UrlGenerationError
|
|
|
|
redirect_to(new_user_session_path)
|
2015-09-23 16:56:30 +02:00
|
|
|
end
|
|
|
|
end
|