diff options
author | Nick Thomas <nick@gitlab.com> | 2017-07-17 11:40:17 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-07-17 11:54:07 +0100 |
commit | c9e6caaef4c467343d162c5841b5543940b092a1 (patch) | |
tree | 94b7183af17e1cddcce839517f62a5ed387b44df /app/models/group.rb | |
parent | 5f32bd774ad5cb89685dab5102e0614b2593d4ff (diff) | |
download | gitlab-ce-c9e6caaef4c467343d162c5841b5543940b092a1.tar.gz |
Promote visibility level helpers from Group to Namespace
In EE, we make use of `namespace#public?` in projects. When the project is in a
personal namespace, this breaks as the `public?` helper isn't present.
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 70a4ceeffd8..dfa4e8adedd 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -2,7 +2,6 @@ require 'carrierwave/orm/activerecord' class Group < Namespace include Gitlab::ConfigHelper - include Gitlab::VisibilityLevel include AccessRequestable include Avatarable include Referable @@ -103,10 +102,6 @@ class Group < Namespace full_name end - def visibility_level_field - :visibility_level - end - def visibility_level_allowed_by_projects allowed_by_projects = self.projects.where('visibility_level > ?', self.visibility_level).none? |