Skip to content

Commit 2a4fbba

Browse files
committed
fixup! fix: adjust studio_grading_url to use the correct URL
1 parent df9e5fd commit 2a4fbba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lms/djangoapps/instructor/views/serializers_v2.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,8 @@ def get_admin_console_url(self, data):
475475
'ADMIN_CONSOLE_MICROFRONTEND_URL',
476476
getattr(settings, 'ADMIN_CONSOLE_MICROFRONTEND_URL', None)
477477
)
478-
if not mfe_base_url or not has_instructor_access:
478+
has_permissions = request.user.is_staff or has_instructor_access
479+
if not mfe_base_url or not has_permissions:
479480
return None
480481
return f'{mfe_base_url}/authz'
481482

0 commit comments

Comments
 (0)