diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index 239430175..b804c8e60 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -361,7 +361,7 @@ class ReportsController < ApplicationController end def check_create_permissions - render_403 unless can_create_reports?(@project.team) + render_403 unless can_create_reports?(current_team) end def check_manage_permissions