Skip to content

Register Instructor Dashboard permissions in AuthZ (LMS) #484

Closed

Description

@BryanttV

Description

Declare the Instructor Dashboard catalog permissions from the LMS and assign them to the existing Course Admin and Course Staff roles. Use the openedx-authz extension mechanism (entry points and a YAML schema) from openedx/openedx-authz#408.

Scope

  • Create the YAML file with the catalog permissions (identifier, name, description and whatever metadata the schema requires for the Administrative Console).
  • Register the LMS entry point that exposes that YAML to openedx-authz.
  • Assign the permissions to the course_admin and course_staff roles according to the agreed matrix (Instructor Dashboard Permissions).
  • Confirm that the reused permissions (courses.manage_course_team and courses.view_grading_settings) are the same ones as in Authoring, not duplicates.
  • Rename courses.view_grading → courses.view_grading_settings (done in this epic):
    • Update every reference in Studio and openedx-authz.
    • Migrate existing assignments so no role loses the permission.
    • Notify the Authoring team and request their review.
  • Add Python constants for the identifiers so the strings aren't repeated across the code.

Acceptance criteria

  • The permissions show up, with their metadata, when querying AuthZ or the Administrative Console.
  • authz_api.is_user_allowed(username, "<permission>", course_key) returns the expected result for users with Course Admin, with Course Staff and with no role.
  • Tests validate the YAML against the schema and the permission → role assignment.
  • After the rename, no references to courses.view_grading remain, and Studio (Grading Settings) keeps working for the same users.

Dependencies

Metadata

Metadata

Labels

willowReleased in Willow

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions