diff options
author | Robert Speicher <robert@gitlab.com> | 2016-11-04 14:15:43 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-11-09 12:27:41 +0100 |
commit | b0088b527eacd16773a85ad8f88e49de7c646cf1 (patch) | |
tree | 58a72d4b3248b2d6d21214d96434bb1a398c5503 /app/controllers/users_controller.rb | |
parent | b0bf92140f469db90ef378fd42a6f65eee1d4633 (diff) | |
download | gitlab-ce-b0088b527eacd16773a85ad8f88e49de7c646cf1.tar.gz |
Merge branch '23403-fix-events-for-private-project-features' into 'security'
Respect project visibility settings in the contributions calendar
This MR fixes a number of bugs relating to access controls and date selection of events for the contributions calendar
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/23403
See merge request !2019
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r-- | app/controllers/users_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 6a881b271d7..c4508ccc3b9 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -104,8 +104,7 @@ class UsersController < ApplicationController end def contributions_calendar - @contributions_calendar ||= Gitlab::ContributionsCalendar. - new(contributed_projects, user) + @contributions_calendar ||= Gitlab::ContributionsCalendar.new(user, current_user) end def load_events |