mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-14 00:54:32 +08:00
Merge pull request #1348 from okriuchykhin/ok_SCI_2782
Fix inventory column creation permission check [SCI-2782]
This commit is contained in:
commit
098b18b405
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ module Api
|
|||
end
|
||||
|
||||
def check_create_permissions
|
||||
unless can_manage_repository?(@inventory)
|
||||
unless can_create_repository_columns?(@inventory.team)
|
||||
render body: nil, status: :forbidden
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue