Skip to content

Commit

Permalink
Fixed scope defining when checking status of project import (#7555)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marishka17 authored Mar 15, 2024
1 parent 787a0c8 commit e431d28
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.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 e431d28

Please sign in to comment.