diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-02 19:32:34 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-02 19:32:34 +0200 |
commit | d431e4339269041784986da40a0e0879baaf96a9 (patch) | |
tree | 1910d14e460d52445d8ae7a6a1906f4a9eec23cb /app/helpers/namespaces_helper.rb | |
parent | 00a1f5bc2cc2c98bda3818e770eaae95e664480a (diff) | |
download | gitlab-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.rb | 2 |
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 |