fix: 修复系统用户sudo tab权限

pull/7677/head
feng626 2022-02-22 14:47:47 +08:00 committed by Jiangjie.Bai
parent e08db7423f
commit 702111f578
1 changed files with 4 additions and 0 deletions

View File

@ -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):