mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 【权限】zyytest用户只有 DataEase 应用的使用权限,但是能对应用进行设置
This commit is contained in:
parent
3357a7bbdd
commit
b16811a15c
|
|
@ -243,7 +243,7 @@ class Application(APIView):
|
|||
tags=['应用'])
|
||||
@has_permissions(ViewPermission(
|
||||
[RoleConstants.ADMIN, RoleConstants.USER],
|
||||
[lambda r, keywords: Permission(group=Group.APPLICATION, operate=Operate.USE,
|
||||
[lambda r, keywords: Permission(group=Group.APPLICATION, operate=Operate.MANAGE,
|
||||
dynamic_tag=keywords.get('application_id'))],
|
||||
compare=CompareConstants.AND))
|
||||
def put(self, request: Request, application_id: str):
|
||||
|
|
|
|||
Loading…
Reference in New Issue