From c5e21e05ddb49d0760eb0a806900e526e8980013 Mon Sep 17 00:00:00 2001 From: chapeau Date: Mon, 17 May 2021 16:47:53 +0200 Subject: [PATCH] documentation --- radius/api/views.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/radius/api/views.py b/radius/api/views.py index ebc65009..24857aa2 100644 --- a/radius/api/views.py +++ b/radius/api/views.py @@ -44,7 +44,9 @@ class AuthorizeResponse: self.user_interface = user_interface 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']) @@ -102,7 +104,9 @@ class PostAuthResponse: self.USER_STATE_ACTIVE = USER_STATE_ACTIVE 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'])