8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-22 11:23:10 +00:00

documentation

This commit is contained in:
chapeau 2021-05-17 16:47:53 +02:00
parent c15ec606c6
commit c5e21e05dd

View file

@ -44,7 +44,9 @@ class AuthorizeResponse:
self.user_interface = user_interface self.user_interface = user_interface
def can_view(self, user): def can_view(self, user):
return [True] """Method to bypass api permissions, because we are using ACL decorators
"""
return (True, None, None)
@api_view(['GET']) @api_view(['GET'])
@ -102,7 +104,9 @@ class PostAuthResponse:
self.USER_STATE_ACTIVE = USER_STATE_ACTIVE self.USER_STATE_ACTIVE = USER_STATE_ACTIVE
def can_view(self, user): def can_view(self, user):
return [True] """Method to bypass api permissions, because we are using ACL decorators
"""
return (True, None, None)
@api_view(['GET']) @api_view(['GET'])