From 1817b9aec424388b3667b4a744dd1288eec3560f Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 24 Jun 2014 15:12:08 +0300 Subject: [PATCH] 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 --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 8c2045444f0..63d819a0f36 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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