Skip to content

Commit

Permalink
Merge pull request #123 from eduNEXT/and/revert_permission_change
Browse files Browse the repository at this point in the history
Add EoxCoreAPIPermission to UserInfo APIView
  • Loading branch information
andrey-canon authored Dec 17, 2020
2 parents d1fca3f + b1fb888 commit 36b3029
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------------

Expand Down
1 change: 1 addition & 0 deletions eox_core/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 36b3029

Please sign in to comment.