diff --git a/app/models/person.rb b/app/models/person.rb index ea4a5e5..5d2f660 100644 --- a/app/models/person.rb +++ b/app/models/person.rb @@ -26,7 +26,7 @@ class Person < Profile :all, :conditions => self.class.conditions_for_profiles(conditions, self), :joins => "LEFT JOIN role_assignments ON profiles.id = role_assignments.resource_id AND role_assignments.resource_type = \'#{Profile.base_class.name}\'", - :select => 'profiles.*').uniq + :select => 'profiles.*').uniq.select{|p|p.class == Enterprise} end def info -- libgit2 0.21.2