Commit 1817b9ae authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix namespace selector on Projects#new page

If user does not own any group he does not see namespace selector when
visit new project page even if he has master membership in one of
groups. This commit fixes it.
Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 2d9667df
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment