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 authored Mar 5, 2024
1 parent f52f0f3 commit d5639aa
Showing 1 changed file with 1 addition and 1 deletion.
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.EXPORT_DATASET if request.query_params.get('action') != 'import_status' else Scopes.IMPORT_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 d5639aa

Please sign in to comment.