diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-05-03 14:49:37 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-05-17 20:53:16 +0200 |
commit | 34974258bc3f745c86512319231bad47232fe007 (patch) | |
tree | a6b9b7d7a80282f77471302f0970daced62e0455 /app/models/user.rb | |
parent | ac382b5682dc2d5eea750313c59fb2581af13326 (diff) | |
download | gitlab-ce-34974258bc3f745c86512319231bad47232fe007.tar.gz |
Hide nested group UI/API support for MySQL
This hides/disables some UI elements and API parameters related to
nested groups when MySQL is used, since nested groups are not supported
for MySQL.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 2cf995f8c31..149a80b6083 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -509,8 +509,6 @@ class User < ActiveRecord::Base # Returns a relation of groups the user has access to, including their parent # and child groups (recursively). def all_expanded_groups - return groups unless Group.supports_nested_groups? - Gitlab::GroupHierarchy.new(groups).all_groups end |