From f68e85532c6af3ef67647245b5cd09204667e90e Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Mon, 10 Oct 2022 16:16:08 +0200 Subject: [PATCH] Fix report creation permission check [SCI-7297] --- app/controllers/reports_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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