Fix bug in concern where the wrong Nonprofit class was being searched for
This commit is contained in:
parent
d5fcab066c
commit
858860f274
1 changed files with 1 additions and 1 deletions
|
@ -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
|
Loading…
Reference in a new issue