未验证 提交 449ae0c5 编写于 作者: K Kiwon Jung 提交者: GitHub

fixed: Unable to upload annotations #4459 (#4513)

上级 21251b5b
......@@ -23,9 +23,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- TDB
### Fixed
- Permission error occured when accessing the JobCommits (<https://github.com/openvinotoolkit/cvat/issues/4434>)
- job assignee can remove or update any issue created by the task owner (<https://github.com/openvinotoolkit/cvat/issues/4424>)
- Permission error occured when accessing the JobCommits (<https://github.com/openvinotoolkit/cvat/pull/4435>)
- job assignee can remove or update any issue created by the task owner (<https://github.com/openvinotoolkit/cvat/pull/4436>)
- Bug: Incorrect point deletion with keyboard shortcut (<https://github.com/openvinotoolkit/cvat/pull/4420>)
- Unable to upload annotations (<https://github.com/openvinotoolkit/cvat/pull/4513>)
### Security
- TDB
......
......@@ -645,12 +645,15 @@ class TaskPermission(OpenPolicyAgentPermission):
('annotations', 'PATCH'): 'update:annotations',
('annotations', 'DELETE'): 'delete:annotations',
('annotations', 'PUT'): 'update:annotations',
('annotations', 'POST'): 'import:annotations',
('append_annotations_chunk', 'PATCH'): 'update:annotations',
('append_annotations_chunk', 'HEAD'): 'update:annotations',
('dataset_export', 'GET'): 'export:dataset',
('data', 'GET'): 'view:data',
('data_info', 'GET'): 'view:data',
('data', 'POST'): 'upload:data',
('append_tus_chunk', 'PATCH'): 'upload:data',
('append_tus_chunk', 'HEAD'): 'upload:data',
('append_data_chunk', 'PATCH'): 'upload:data',
('append_data_chunk', 'HEAD'): 'upload:data',
('jobs', 'GET'): 'view',
('import_backup', 'POST'): 'import:backup',
('export_backup', 'GET'): 'export:backup',
......@@ -790,6 +793,9 @@ class JobPermission(OpenPolicyAgentPermission):
('annotations', 'PATCH'): 'update:annotations',
('annotations', 'DELETE'): 'delete:annotations',
('annotations', 'PUT'): 'update:annotations',
('annotations', 'POST'): 'import:annotations',
('append_annotations_chunk', 'PATCH'): 'update:annotations',
('append_annotations_chunk', 'HEAD'): 'update:annotations',
('data', 'GET'): 'view:data',
('issues', 'GET'): 'view',
('commits', 'GET'): 'view:commits'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册