Skip to content

Commit

Permalink
Fixed scope defining when checking status of project import
Browse files Browse the repository at this point in the history
  • Loading branch information
Marishka17 committed Mar 6, 2024
1 parent f52f0f3 commit 6bca1ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### Fixed

- Scope definition when checking project permissions while requesting status of project import
(<https://github.com/opencv/cvat/pull/7555>)
2 changes: 1 addition & 1 deletion cvat/apps/iam/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def get_scopes(request, view, obj):
('append_dataset_chunk', 'HEAD'): Scopes.IMPORT_DATASET,
('append_dataset_chunk', 'PATCH'): Scopes.IMPORT_DATASET,
('annotations', 'GET'): Scopes.EXPORT_ANNOTATIONS,
('dataset', 'GET'): Scopes.EXPORT_DATASET,
('dataset', 'GET'): Scopes.IMPORT_DATASET if request.query_params.get('action') == 'import_status' else Scopes.EXPORT_DATASET,
('export_backup', 'GET'): Scopes.EXPORT_BACKUP,
('import_backup', 'POST'): Scopes.IMPORT_BACKUP,
('append_backup_chunk', 'PATCH'): Scopes.IMPORT_BACKUP,
Expand Down

0 comments on commit 6bca1ac

Please sign in to comment.