Fix bug in concern where the wrong Nonprofit class was being searched for

This commit is contained in:
Eric 2020-06-18 17:15:38 -05:00 committed by Eric Schultz
parent d5fcab066c
commit 858860f274

View file

@ -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