From 702111f578a22885523a4a4c1f619e84d59289cb Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Tue, 22 Feb 2022 14:47:47 +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=B7sudo=20tab=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/api/system_user.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/assets/api/system_user.py b/apps/assets/api/system_user.py index ccaed24da..829514176 100644 --- a/apps/assets/api/system_user.py +++ b/apps/assets/api/system_user.py @@ -45,6 +45,10 @@ class SystemUserViewSet(SuggestionMixin, OrgBulkModelViewSet): } ordering_fields = ('name', 'protocol', 'login_mode') ordering = ('name', ) + rbac_perms = { + 'su_from': 'assets.view_systemuser', + 'su_to': 'assets.view_systemuser' + } @action(methods=['get'], detail=False, url_path='su-from') def su_from(self, request, *args, **kwargs):