mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-11 00:41:41 +08:00
Fix report creation permission check [SCI-7297]
This commit is contained in:
parent
3592faea78
commit
f68e85532c
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…
Add table
Reference in a new issue