mirror of https://github.com/jumpserver/jumpserver
fix: 修改 user granted asset account
parent
ed26c7f575
commit
7061ce7c97
|
@ -16,11 +16,8 @@ __all__ = [
|
||||||
|
|
||||||
class UserGrantedAssetAccountsApi(SelfOrPKUserMixin, ListAPIView):
|
class UserGrantedAssetAccountsApi(SelfOrPKUserMixin, ListAPIView):
|
||||||
serializer_class = serializers.AccountsGrantedSerializer
|
serializer_class = serializers.AccountsGrantedSerializer
|
||||||
rbac_perms = (
|
|
||||||
('GET', 'perms.view_userassets'),
|
|
||||||
('list', 'perms.view_userassets'),
|
|
||||||
)
|
|
||||||
|
|
||||||
|
@property
|
||||||
def asset(self):
|
def asset(self):
|
||||||
asset_id = self.kwargs.get('asset_id')
|
asset_id = self.kwargs.get('asset_id')
|
||||||
kwargs = {'id': asset_id, 'is_active': True}
|
kwargs = {'id': asset_id, 'is_active': True}
|
||||||
|
|
Loading…
Reference in New Issue