From cd0838d939e856ad5b8452df6f693f59bf901449 Mon Sep 17 00:00:00 2001 From: Chidi Ekuma Date: Wed, 27 Mar 2024 12:05:09 +0000 Subject: [PATCH] Staging validations --- app/controllers/schools/users_controller.rb | 4 +++- app/views/schools/users/index.html.erb | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controllers/schools/users_controller.rb b/app/controllers/schools/users_controller.rb index 9d850f645..12dec27f6 100644 --- a/app/controllers/schools/users_controller.rb +++ b/app/controllers/schools/users_controller.rb @@ -1,6 +1,8 @@ module Schools class UsersController < BaseController - def index; end + def index + @users = DFESignInAPI::OrganisationUsers.new(current_user.sub, current_school.urn).users + end def new @user_invite = DFESignInAPI::UserInvite.new diff --git a/app/views/schools/users/index.html.erb b/app/views/schools/users/index.html.erb index 733096d30..1480234eb 100644 --- a/app/views/schools/users/index.html.erb +++ b/app/views/schools/users/index.html.erb @@ -27,4 +27,5 @@ + <%= @users %>