summaryrefslogtreecommitdiff
path: root/app/controllers/dashboard_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-10 15:04:52 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-02-10 15:04:52 +0200
commit56f989e53e80fe7545a3400ba7ee98a0cd2cf259 (patch)
treee43d7b724b373969ce0dfa9a59c1c447352f8d95 /app/controllers/dashboard_controller.rb
parent5a098e84e4de30d95ba5e0a3a7bbd81813cf3305 (diff)
downloadgitlab-ce-56f989e53e80fe7545a3400ba7ee98a0cd2cf259.tar.gz
Fix wrong issues appears at Dashboard#issues page
Filtering service used klass instead of passed items. Because of this you see list of all issues intead of authorized ones. This commit fixes it so people see only issues they are authorized to see. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/dashboard_controller.rb')
-rw-r--r--app/controllers/dashboard_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb
index 656eda9dec2..b95233c0e91 100644
--- a/app/controllers/dashboard_controller.rb
+++ b/app/controllers/dashboard_controller.rb
@@ -54,12 +54,12 @@ class DashboardController < ApplicationController
def merge_requests
@merge_requests = FilteringService.new.execute(MergeRequest, current_user, params)
- @merge_requests = @merge_requests.recent.page(params[:page]).per(20)
+ @merge_requests = @merge_requests.page(params[:page]).per(20)
end
def issues
@issues = FilteringService.new.execute(Issue, current_user, params)
- @issues = @issues.recent.page(params[:page]).per(20)
+ @issues = @issues.page(params[:page]).per(20)
@issues = @issues.includes(:author, :project)
respond_to do |format|