Skip to content

Commit

Permalink
fixed: Unable to upload annotations #4459 (#4513)
Browse files Browse the repository at this point in the history
  • Loading branch information
k1won authored Mar 25, 2022
1 parent 21251b5 commit 449ae0c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions cvat/apps/iam/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,12 +645,15 @@ def get_scopes(request, view, obj):
('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',
Expand Down Expand Up @@ -790,6 +793,9 @@ def get_scopes(request, view, obj):
('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'
Expand Down

0 comments on commit 449ae0c

Please sign in to comment.