mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-12 14:18:33 +00:00
[Update] 校验用户对RemoteApp权限API添加权限控制 (#2715)
This commit is contained in:
parent
3eaf4cd142
commit
b18ca8c94f
@ -512,6 +512,7 @@ class UserGrantedRemoteAppsAsTreeApi(ListAPIView):
|
||||
|
||||
|
||||
class ValidateUserRemoteAppPermissionApi(APIView):
|
||||
permission_classes = (IsOrgAdminOrAppUser,)
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
user_id = request.query_params.get('user_id', '')
|
||||
|
Loading…
Reference in New Issue
Block a user