Skip to content

Commit 35bbe49

Browse files
committed
feat: expand permissions for application access token in chat views
1 parent 995c6c5 commit 35bbe49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/views/chat_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def delete(self, request: Request, application_id: str, chat_id: str):
244244
responses=result.get_default_response(),
245245
tags=[_("Application/Conversation Log")])
246246
@has_permissions(ViewPermission(
247-
[RoleConstants.APPLICATION_ACCESS_TOKEN],
247+
[RoleConstants.APPLICATION_ACCESS_TOKEN, RoleConstants.ADMIN, RoleConstants.USER],
248248
[lambda r, keywords: Permission(group=Group.APPLICATION, operate=Operate.USE,
249249
dynamic_tag=keywords.get('application_id'))],
250250
compare=CompareConstants.AND),

0 commit comments

Comments
 (0)