summaryrefslogtreecommitdiff
path: root/app/helpers/namespaces_helper.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 19:32:34 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 19:32:34 +0200
commitd431e4339269041784986da40a0e0879baaf96a9 (patch)
tree1910d14e460d52445d8ae7a6a1906f4a9eec23cb /app/helpers/namespaces_helper.rb
parent00a1f5bc2cc2c98bda3818e770eaae95e664480a (diff)
downloadgitlab-ce-d431e4339269041784986da40a0e0879baaf96a9.tar.gz
Fix few bugs and tests after refactoring ownership logic
Diffstat (limited to 'app/helpers/namespaces_helper.rb')
-rw-r--r--app/helpers/namespaces_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/namespaces_helper.rb b/app/helpers/namespaces_helper.rb
index fdf6725cc13..2d25c8f854d 100644
--- a/app/helpers/namespaces_helper.rb
+++ b/app/helpers/namespaces_helper.rb
@@ -1,6 +1,6 @@
module NamespacesHelper
def namespaces_options(selected = :current_user, scope = :default)
- groups = current_user.namespaces.select {|n| n.type == 'Group'}
+ groups = current_user.owned_groups.select {|n| n.type == 'Group'}
users = if scope == :all
Namespace.root