mirror of https://github.com/jumpserver/jumpserver
parent
615929dd43
commit
27560793f8
|
@ -186,8 +186,8 @@ class SystemUserTaskApi(generics.CreateAPIView):
|
||||||
def check_permissions(self, request):
|
def check_permissions(self, request):
|
||||||
action = request.data.get('action')
|
action = request.data.get('action')
|
||||||
action_perm_require = {
|
action_perm_require = {
|
||||||
'push': 'assets.push_systemuser',
|
'push': 'assets.push_assetsystemuser',
|
||||||
'test': 'assets.test_connectivity'
|
'test': 'assets.test_assetconnectivity'
|
||||||
}
|
}
|
||||||
perm_required = action_perm_require.get(action)
|
perm_required = action_perm_require.get(action)
|
||||||
has = self.request.user.has_perm(perm_required)
|
has = self.request.user.has_perm(perm_required)
|
||||||
|
|
Loading…
Reference in New Issue