fixed: Permission error occured when accessing the comments of a specific issue - #4416 (#4421)

main
Kiwon Jung 4 years ago committed by GitHub
parent 14cee3d847
commit e62d200fe5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -78,6 +78,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Annotations search does not work correctly in some corner cases (when use complex properties with width, height) (<https://github.com/openvinotoolkit/cvat/pull/4198>)
- Kibana requests are not proxied due to django-revproxy incompatibility with Django >3.2.x (<https://github.com/openvinotoolkit/cvat/issues/4085>)
- Content type for getting frame with tasks/{id}/data/ endpoint (<https://github.com/openvinotoolkit/cvat/pull/4333>)
- Bug: Permission error occured when accessing the comments of a specific issue (<https://github.com/openvinotoolkit/cvat/issues/4416>)
### Security
- Updated ELK to 6.8.23 which uses log4j 2.17.1 (<https://github.com/openvinotoolkit/cvat/pull/4206>)

@ -1,4 +1,4 @@
# Copyright (C) 2021 Intel Corporation
# Copyright (C) 2022 Intel Corporation
#
# SPDX-License-Identifier: MIT
@ -959,7 +959,8 @@ class IssuePermission(OpenPolicyAgentPermission):
'create': 'create@job',
'destroy': 'delete',
'partial_update': 'update',
'retrieve': 'view'
'retrieve': 'view',
'comments': 'view'
}.get(view.action, None)]
def get_resource(self):

Loading…
Cancel
Save