From dca22cf2b98a35ed04895b5de7c165cb9475b706 Mon Sep 17 00:00:00 2001 From: Aaron Spencer Date: Fri, 2 Jun 2023 11:59:05 +0100 Subject: [PATCH] CLDC-2328: Tests added --- app/controllers/users_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 5d05c3b27..7c30ccda3 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -4,9 +4,9 @@ class UsersController < ApplicationController include Helpers::Email include Modules::SearchFilter - before_action :authenticate_user!, except: %i[resend_invite] + before_action :authenticate_user! before_action :find_resource, except: %i[new create] - before_action :authenticate_scope!, except: %i[new resend_invite] + before_action :authenticate_scope!, except: %i[new] def index redirect_to users_organisation_path(current_user.organisation) unless current_user.support?