Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-02 14:43:07 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-06-02 14:43:07 +0400
commite9de569458b55b43a0d09dceef07c3c5d583af24 (patch)
tree62cd512f3a0bbb7a679ac910be7505657129e4a5 /app/models
parent72b295259ed8565e166a7f2a466ca33d183f6108 (diff)
Fix tests for user page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index f1b6139745e..0fbc9284dd8 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -478,4 +478,8 @@ class User < ActiveRecord::Base
def generate_tmp_oauth_email
self.email = "temp-email-for-oauth-#{username}@gitlab.localhost"
end
+
+ def public_profile?
+ authorized_projects.public_only.any?
+ end
end