未验证 提交 e62d200f 编写于 作者: K Kiwon Jung 提交者: GitHub

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

上级 14cee3d8
......@@ -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>)
......
# 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):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册