summaryrefslogtreecommitdiff
path: root/app/models/users_star_project.rb
diff options
context:
space:
mode:
authorCamil Staps <info@camilstaps.nl>2019-07-27 08:26:53 +0200
committerCamil Staps <info@camilstaps.nl>2019-08-07 20:49:37 +0200
commitd4078b535c9854695e770cdfb5e0f4846a8cf64a (patch)
treed018c433af17263a419c41473e589f4e9e28ca38 /app/models/users_star_project.rb
parente726ed5e128893158f102b87e1407ec0a36fc3ce (diff)
downloadgitlab-ce-d4078b535c9854695e770cdfb5e0f4846a8cf64a.tar.gz
Fix public/private starrers counts in special cases20137-starrers
Diffstat (limited to 'app/models/users_star_project.rb')
-rw-r--r--app/models/users_star_project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/users_star_project.rb b/app/models/users_star_project.rb
index baf055dd6dd..3c7a805cc5c 100644
--- a/app/models/users_star_project.rb
+++ b/app/models/users_star_project.rb
@@ -16,6 +16,7 @@ class UsersStarProject < ApplicationRecord
scope :order_user_name_desc, -> { joins(:user).merge(User.order_name_desc) }
scope :by_project, -> (project) { where(project_id: project.id) }
scope :with_visible_profile, -> (user) { joins(:user).merge(User.with_visible_profile(user)) }
+ scope :with_public_profile, -> { joins(:user).merge(User.with_public_profile) }
class << self
def sort_by_attribute(method)