Merge pull request #4512 from okriuchykhin/ok_SCI_7297

Fix report creation permission check [SCI-7297]
This commit is contained in:
Alex Kriuchykhin 2022-10-11 11:01:31 +02:00 committed by GitHub
commit 99ffbf47ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -361,7 +361,7 @@ class ReportsController < ApplicationController
end end
def check_create_permissions def check_create_permissions
render_403 unless can_create_reports?(@project.team) render_403 unless can_create_reports?(current_team)
end end
def check_manage_permissions def check_manage_permissions