diff options
author | Stephen Holdaway <stecman@gmail.com> | 2013-09-12 00:10:45 +1200 |
---|---|---|
committer | Stephen Holdaway <stecman@gmail.com> | 2013-09-12 00:10:45 +1200 |
commit | e19526c2ac3e6a8ae62934c09ac70219062c818a (patch) | |
tree | 06bd1b6bff49d57bbb28b38e95016b86b4c54324 /app/models/user.rb | |
parent | c7cb7599e23a37f3ff97522a43bbd97222d86774 (diff) | |
download | gitlab-ce-e19526c2ac3e6a8ae62934c09ac70219062c818a.tar.gz |
Fix several_namespaces? to work with multiple ownership of groups
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index c2355eaab99..2411b270fc6 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -322,7 +322,7 @@ class User < ActiveRecord::Base end def several_namespaces? - namespaces.many? + namespaces.many? || owned_groups.any? end def namespace_id |