Browse Source

Do not show deleted users

pull/2288/head
Kat 2 years ago
parent
commit
b7dfc86a31
  1. 1
      app/controllers/users_controller.rb

1
app/controllers/users_controller.rb

@ -207,6 +207,7 @@ private
if action_name == "create"
head :unauthorized and return unless current_user.data_coordinator? || current_user.support?
else
render_not_found and return if @user.status == :deleted
render_not_found and return unless (current_user.organisation == @user.organisation) || current_user.support?
render_not_found and return if action_name == "edit_password" && current_user != @user
render_not_found and return unless action_name == "show" ||

Loading…
Cancel
Save