enable wallet api
This commit is contained in:
parent
30387f6cdd
commit
f9fd4873e1
1 changed files with 2 additions and 2 deletions
|
|
@ -32,9 +32,9 @@ class MyWalletBalanceView(generics.RetrieveAPIView):
|
|||
'''
|
||||
API for getting authenticated user balance.
|
||||
'''
|
||||
permission_classes = [AllowAny, permissions.IsAuthenticated, IsAuthenticatedOrTokenHasScope]
|
||||
permission_classes = [IsAuthenticatedOrTokenHasScope]
|
||||
serializer_class = MyWalletSerializer
|
||||
required_scopes = ['wallet.user:get_balance']
|
||||
required_scopes = ['wallet.wallet:get_balance']
|
||||
|
||||
def get_object(self):
|
||||
return self.request.user
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue