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

This commit is contained in:
feng626
2022-02-22 14:47:47 +08:00
committed by Jiangjie.Bai
parent e08db7423f
commit 702111f578

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