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

Update views.py

This commit is contained in:
chapeau 2021-05-14 10:32:17 +00:00
parent 1e6c6348b8
commit 2381ae2169

View file

@ -43,11 +43,6 @@ class AuthorizeResponse:
self.user = user self.user = user
self.user_interface = user_interface self.user_interface = user_interface
def can_view(self, user):
"""Temp method to bypass ACL
"""
return [True]
@api_view(['GET']) @api_view(['GET'])
@login_required @login_required
@ -103,9 +98,6 @@ class PostAuthResponse:
self.RADIUS_OPTION_REJECT = RADIUS_OPTION_REJECT self.RADIUS_OPTION_REJECT = RADIUS_OPTION_REJECT
self.USER_STATE_ACTIVE = USER_STATE_ACTIVE self.USER_STATE_ACTIVE = USER_STATE_ACTIVE
def can_view(self, user):
return [True]
@api_view(['GET']) @api_view(['GET'])
@login_required @login_required