diff options
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 9ea7cabff15..ef687f737cc 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -701,13 +701,7 @@ class User < ActiveRecord::Base end def manageable_namespaces - @manageable_namespaces ||= - begin - namespaces = [] - namespaces << namespace - namespaces += owned_groups - namespaces += masters_groups - end + @manageable_namespaces ||= [namespace] + owned_groups + masters_groups end def namespaces |