Skip to content

Commit 5af4edf

Browse files
committed
fixup! fix: adjust studio_grading_url to use the correct URL
1 parent a9394d4 commit 5af4edf

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
@@ -477,7 +477,8 @@ def get_admin_console_url(self, data):
477477
'ADMIN_CONSOLE_MICROFRONTEND_URL',
478478
getattr(settings, 'ADMIN_CONSOLE_MICROFRONTEND_URL', None)
479479
)
480-
if not mfe_base_url or not has_instructor_access:
480+
has_permissions = request.user.is_staff or has_instructor_access
481+
if not mfe_base_url or not has_permissions:
481482
return None
482483
return f'{mfe_base_url}/authz'
483484

0 commit comments

Comments
 (0)