Merge branch 'fix-namespace-select' into 'master'

Fix namespace select

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/371
This commit is contained in:
Dmitriy Zaporozhets 2014-06-24 14:08:12 +00:00
commit 5c5a02da31

View file

@ -372,7 +372,7 @@ class User < ActiveRecord::Base
end
def several_namespaces?
owned_groups.any?
owned_groups.any? || masters_groups.any?
end
def namespace_id