Browse Source

Fixed user based organization push.

Martin Edenhofer 11 years ago
parent
commit
ffed9f6f44
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/controllers/sessions/collection_base.rb

+ 2 - 2
app/controllers/sessions/collection_base.rb

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