Browse Source

Remove return statement to ensure fallback redirection

pull/2629/head
Manny Dinssa 2 years ago
parent
commit
f971dcae31
  1. 2
      app/controllers/bulk_upload_lettings_logs_controller.rb
  2. 2
      app/controllers/bulk_upload_sales_logs_controller.rb

2
app/controllers/bulk_upload_lettings_logs_controller.rb

@ -3,7 +3,7 @@ class BulkUploadLettingsLogsController < ApplicationController
before_action :validate_data_protection_agrement_signed!
def start
support_user_redirection and return if current_user.support?
support_user_redirection if current_user.support?
if have_choice_of_year?
redirect_to bulk_upload_lettings_log_path(id: "year")

2
app/controllers/bulk_upload_sales_logs_controller.rb

@ -3,7 +3,7 @@ class BulkUploadSalesLogsController < ApplicationController
before_action :validate_data_protection_agrement_signed!
def start
support_user_redirection and return if current_user.support?
support_user_redirection if current_user.support?
if have_choice_of_year?
redirect_to bulk_upload_sales_log_path(id: "year")

Loading…
Cancel
Save