Browse Source

CLDC-2328: Tests added

pull/1680/head
Aaron Spencer 3 years ago
parent
commit
dca22cf2b9
  1. 4
      app/controllers/users_controller.rb

4
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?

Loading…
Cancel
Save