fix: 修改 user granted asset account

pull/9075/head
ibuler 2022-11-15 16:29:31 +08:00
parent ed26c7f575
commit 7061ce7c97
1 changed files with 1 additions and 4 deletions

View File

@ -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}