mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Merge pull request #4512 from okriuchykhin/ok_SCI_7297
Fix report creation permission check [SCI-7297]
This commit is contained in:
commit
99ffbf47ab
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue