From 27560793f814a768a7ec3a0f56032fc97d2b2e2e Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Mon, 7 Mar 2022 16:01:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BB=BB=E5=8A=A1=E6=9D=83=E9=99=90bug=20(#7?= =?UTF-8?q?753)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: feng626 <1304903146@qq.com> --- apps/assets/api/system_user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/assets/api/system_user.py b/apps/assets/api/system_user.py index f525eceb4..f679b4e3f 100644 --- a/apps/assets/api/system_user.py +++ b/apps/assets/api/system_user.py @@ -186,8 +186,8 @@ class SystemUserTaskApi(generics.CreateAPIView): def check_permissions(self, request): action = request.data.get('action') action_perm_require = { - 'push': 'assets.push_systemuser', - 'test': 'assets.test_connectivity' + 'push': 'assets.push_assetsystemuser', + 'test': 'assets.test_assetconnectivity' } perm_required = action_perm_require.get(action) has = self.request.user.has_perm(perm_required)