mirror of https://github.com/jumpserver/jumpserver
fix: 修复资产详情授权用户tab页的权限位
parent
3ed7477057
commit
a8cee26874
|
@ -206,7 +206,7 @@ class AssetGatewayListApi(generics.ListAPIView):
|
||||||
|
|
||||||
class BaseAssetPermUserOrUserGroupListApi(ListAPIView):
|
class BaseAssetPermUserOrUserGroupListApi(ListAPIView):
|
||||||
rbac_perms = {
|
rbac_perms = {
|
||||||
'GET': 'assets.view_asset'
|
'GET': 'perms.view_assetpermission'
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_object(self):
|
def get_object(self):
|
||||||
|
@ -226,7 +226,7 @@ class AssetPermUserListApi(BaseAssetPermUserOrUserGroupListApi):
|
||||||
search_fields = ('username', 'email', 'name', 'id', 'source', 'role')
|
search_fields = ('username', 'email', 'name', 'id', 'source', 'role')
|
||||||
serializer_class = UserSerializer
|
serializer_class = UserSerializer
|
||||||
rbac_perms = {
|
rbac_perms = {
|
||||||
'GET': 'assets.view_asset'
|
'GET': 'perms.view_assetpermission'
|
||||||
}
|
}
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
|
|
Loading…
Reference in New Issue