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:
authorJames Lopez <james@jameslopez.es>2016-11-21 16:09:26 +0300
committerJames Lopez <james@jameslopez.es>2016-11-21 16:09:26 +0300
commit9b691688583ad46d5608320ec64873dd2eb9a647 (patch)
treedad3a7572fcc6378b355942d7c9a12f883ead213 /app/controllers/projects/cycle_analytics_controller.rb
parentd747c1c0f974034d71a25edc2c8e525d3657c774 (diff)
refactored a couple of things based on feedback
Diffstat (limited to 'app/controllers/projects/cycle_analytics_controller.rb')
-rw-r--r--app/controllers/projects/cycle_analytics_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/cycle_analytics_controller.rb b/app/controllers/projects/cycle_analytics_controller.rb
index 8567b074f11..00ecdcbd1b9 100644
--- a/app/controllers/projects/cycle_analytics_controller.rb
+++ b/app/controllers/projects/cycle_analytics_controller.rb
@@ -6,7 +6,7 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController
before_action :authorize_read_cycle_analytics!
def show
- @cycle_analytics = ::CycleAnalytics.new(@project, from: start_date(cycle_analytics_params), user: current_user)
+ @cycle_analytics = ::CycleAnalytics.new(@project, from: start_date(cycle_analytics_params))
respond_to do |format|
format.html
@@ -55,7 +55,7 @@ class Projects::CycleAnalyticsController < Projects::ApplicationController
{
summary: summary,
stats: stats,
- permissions: @cycle_analytics.permissions
+ permissions: @cycle_analytics.permissions(user: current_user)
}
end
end