summaryrefslogtreecommitdiff
path: root/app/models/group.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-14 11:05:23 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-14 11:05:23 +0200
commit4c060074b792519e23403c0b21d4c2b3b49a8f36 (patch)
treeaee3e0dfc6db0666de1b01b62e8d616a251391ad /app/models/group.rb
parentb7431ec042bc14052c407fd277177681e189c892 (diff)
downloadgitlab-ce-4c060074b792519e23403c0b21d4c2b3b49a8f36.tar.gz
Skip auth for group page but return auth for other group pages
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index 702d7825d57..9cd146bb73b 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -119,6 +119,10 @@ class Group < Namespace
end
end
+ def public_profile?
+ projects.public_only.any?
+ end
+
def post_create_hook
Gitlab::AppLogger.info("Group \"#{name}\" was created")