From b1fb888ef37261d9e10b3e1dd740aea35a9db1b5 Mon Sep 17 00:00:00 2001 From: Andrey Canon Date: Thu, 17 Dec 2020 18:17:35 -0500 Subject: [PATCH] Add EoxCoreAPIPermission to UserInfo APIView --- CHANGELOG.rst | 4 ++++ eox_core/api/v1/views.py | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index ab5cc91ad..2c2303b6c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,6 +12,10 @@ Change Log Unreleased ---------- +Added +~~~~~ +* Revert previous change in order to add EoxCoreAPIPermission to UserInfo APIView. + [3.3.0] - 2020-12-16 -------------------- diff --git a/eox_core/api/v1/views.py b/eox_core/api/v1/views.py index 723fe51b1..ddc297d5f 100644 --- a/eox_core/api/v1/views.py +++ b/eox_core/api/v1/views.py @@ -456,6 +456,7 @@ class UserInfo(APIView): Can use Oauth2/Session """ authentication_classes = (BearerAuthentication, SessionAuthentication) + permission_classes = (EoxCoreAPIPermission,) renderer_classes = (JSONRenderer, BrowsableAPIRenderer) def get(self, request, format=None): # pylint: disable=redefined-builtin