@@ -76,7 +76,7 @@ class CourseInformationSerializerV2(serializers.Serializer):
7676 help_text = "URL to the Studio grading settings page for the course (null if not configured)"
7777 )
7878 admin_console_url = serializers .SerializerMethodField (
79- help_text = "URL to the admin console"
79+ help_text = "URL to the admin console (requires instructor access and MFE configuration, null if not accessible) "
8080 )
8181 permissions = serializers .SerializerMethodField (help_text = "User permissions for instructor dashboard features" )
8282 tabs = serializers .SerializerMethodField (help_text = "List of course tabs with configuration and display information" )
@@ -469,7 +469,7 @@ def get_studio_grading_url(self, data):
469469 return f'{ mfe_base_url } /course/{ course_key } /settings/grading'
470470
471471 def get_admin_console_url (self , data ):
472- """Get admin console URL."""
472+ """Get admin console URL (requires instructor access and MFE configuration, null if not accessible) ."""
473473 course_key = data ['course' ].id
474474 request = data ['request' ]
475475 has_instructor_access = has_access (request .user , 'instructor' , data ['course' ])
@@ -480,7 +480,6 @@ def get_admin_console_url(self, data):
480480 )
481481 if not mfe_base_url or not has_instructor_access :
482482 return None
483-
484483 return f'{ mfe_base_url } /authz'
485484
486485 def get_disable_buttons (self , data ):
0 commit comments