From 858860f274b68c4b1dd593ab2604b918c24ae396 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 18 Jun 2020 17:15:38 -0500 Subject: [PATCH] Fix bug in concern where the wrong Nonprofit class was being searched for --- app/controllers/concerns/controllers/user/authorization.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/concerns/controllers/user/authorization.rb b/app/controllers/concerns/controllers/user/authorization.rb index 5cf3898d..9e8ef86f 100644 --- a/app/controllers/concerns/controllers/user/authorization.rb +++ b/app/controllers/concerns/controllers/user/authorization.rb @@ -69,7 +69,7 @@ module Controllers::User::Authorization return nil unless current_user key = "administered_nonprofit_user_#{current_user_id}_nonprofit" - Nonprofit.where(id: QueryRoles.host_ids(current_user_id, %i[nonprofit_admin nonprofit_associate])).last + ::Nonprofit.where(id: QueryRoles.host_ids(current_user_id, %i[nonprofit_admin nonprofit_associate])).last end end end \ No newline at end of file