From da1c2a119ba675fcf239dee2b55d2fefc2b50b0f Mon Sep 17 00:00:00 2001 From: Awais Jibran <awaisdar001@gmail.com> Date: Wed, 8 May 2019 17:38:51 +0500 Subject: [PATCH] Fix Elevation in permission over OAuth --- openedx/core/djangoapps/oauth_dispatch/jwt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openedx/core/djangoapps/oauth_dispatch/jwt.py b/openedx/core/djangoapps/oauth_dispatch/jwt.py index b8a82a8e98f..87155fdcfd8 100644 --- a/openedx/core/djangoapps/oauth_dispatch/jwt.py +++ b/openedx/core/djangoapps/oauth_dispatch/jwt.py @@ -198,6 +198,7 @@ def _attach_profile_claim(payload, user): 'family_name': user.last_name, 'given_name': user.first_name, 'administrator': user.is_staff, + 'superuser': user.is_superuser, }) -- GitLab