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: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-06-24 15:12:08 +03:00
parent 2d9667df26
commit 1817b9aec4
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 1 additions and 1 deletions

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