Fixed user based organization push.

This commit is contained in:
Martin Edenhofer 2013-07-22 09:45:22 +02:00
parent 0aec08cc1f
commit ffed9f6f44

View file

@ -12,7 +12,7 @@ module ExtraCollection
collections['Organization'] = Organization.all
else
if user.organization_id
collections['Organization'] = Organization.find( user.organization_id )
collections['Organization'] = Organization.where( :id => user.organization_id )
end
end
end
@ -26,7 +26,7 @@ module ExtraCollection
collections['Organization'] = Organization.all
else
if user.organization_id
collections['Organization'] = Organization.find( user.organization_id )
collections['Organization'] = Organization.where( :id => user.organization_id )
end
end
end