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):
|
||||
serializer_class = serializers.AccountsGrantedSerializer
|
||||
rbac_perms = (
|
||||
('GET', 'perms.view_userassets'),
|
||||
('list', 'perms.view_userassets'),
|
||||
)
|
||||
|
||||
@property
|
||||
def asset(self):
|
||||
asset_id = self.kwargs.get('asset_id')
|
||||
kwargs = {'id': asset_id, 'is_active': True}
|
||||
|
|
Loading…
Reference in New Issue