diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-12-28 13:32:18 +0200 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2016-01-04 16:00:29 +0200 |
commit | 8b1844912561a7e6dd0cc361ea1514f2a340e275 (patch) | |
tree | 9a6c705fb9ac1c1e6c28f5ed712025c0b020fd1c /app/models/group.rb | |
parent | 57074d606b20516921ff2297e2f94262b58e3d3e (diff) | |
download | gitlab-ce-8b1844912561a7e6dd0cc361ea1514f2a340e275.tar.gz |
remove public field from namespace and refactoringnamespace-clean_up
Diffstat (limited to 'app/models/group.rb')
-rw-r--r-- | app/models/group.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/group.rb b/app/models/group.rb index 1b5b875a19e..b8f2ab6ae5d 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -50,10 +50,6 @@ class Group < Namespace User.reference_pattern end - def public_and_given_groups(ids) - where('public IS TRUE OR namespaces.id IN (?)', ids) - end - def visible_to_user(user) where(id: user.authorized_groups.select(:id).reorder(nil)) end @@ -125,10 +121,6 @@ class Group < Namespace end end - def public_profile? - self.public || projects.public_only.any? - end - def post_create_hook Gitlab::AppLogger.info("Group \"#{name}\" was created") |