app/controllers/hyrax/users_controller.rb in hyrax-2.9.0 vs app/controllers/hyrax/users_controller.rb in hyrax-2.9.1
- old
+ new
@@ -39,10 +39,10 @@
[nil]
end
def find_user
@user = ::User.from_url_component(params[:id])
- redirect_to root_path, alert: "User '#{params[:id]}' does not exist" if @user.nil?
+ redirect_to root_path, alert: "User does not exist" unless @user
end
def sort_value
sort = params[:sort].blank? ? "name" : params[:sort]
case sort