diff --git a/app/controllers/evaluation/application_controller.rb b/app/controllers/evaluation/application_controller.rb index 7920515ab..7d1d6b5f0 100644 --- a/app/controllers/evaluation/application_controller.rb +++ b/app/controllers/evaluation/application_controller.rb @@ -1,4 +1,15 @@ module Evaluation class ApplicationController < ::ApplicationController + protected + + def authenticate_user! + return unless current_user.guest? + + session.delete(:dfe_sign_in_uid) + if params[:controller] == "evaluation/tasks" && params[:action] == "edit" + session[:email_evaluator_link] = evaluation_task_path(id: params[:id], host: request.host) + end + redirect_to root_path, notice: I18n.t("banner.session.visitor") + end end end diff --git a/app/views/specify/home/_evaluation.html.erb b/app/views/specify/home/_evaluation.html.erb index 48baad7ad..38c7d1487 100644 --- a/app/views/specify/home/_evaluation.html.erb +++ b/app/views/specify/home/_evaluation.html.erb @@ -20,7 +20,7 @@
<%= I18n.t("specifying.evaluation_page.watch_video") %> - <%= govuk_link_to I18n.t("specifying.evaluation_page.watch_video_link"), "https://www.youtube.com/watch?v=cbL65QlOas4", no_visited_state: true %> + <%= govuk_link_to I18n.t("specifying.evaluation_page.watch_video_link"), "https://www.youtube.com/watch?v=cbL65QlOas4", no_visited_state: true, target: "_blank" %>
<%= I18n.t("specifying.evaluation_page.evaluate_independently") %>
<%= I18n.t("specifying.evaluation_page.justification") %>