Allow authz-only roles to load Pages & Resources → Live

オープン
#599 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
74/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
authorization

調査の方向性

Start in course_live/permissions.py and trace how IsStaffOrInstructor handles GET and write requests; the issue names course_live/providers and course_live/course as affected endpoints. Check the existing permission tests and add or update coverage for authz-only users, write access, and legacy staff and instructors. Done means authorized users can load Live, only users with manage permission can modify it, and the tests pass.

索引モデルが issue の本文から書いたものです。

説明

willow
Description

Pages & Resources → Live cannot load for users who only have authz roles. course_live/permissions.py IsStaffOrInstructor only accepts legacy GlobalStaff, CourseInstructorRole or CourseStaffRole.

Current Behavior

course_live/providers and course_live/course return 403 for every user with authz-only roles, so the Live page does not load.

Expected Behavior

Users with authz roles can view Live settings with read permission, and change them only with the manage permission.

Steps to reproduce
  1. Log in as a user with an authz-only role (no legacy course role).
  2. Open Pages & Resources → Live.
  3. Observe 403 responses from course_live/providers and course_live/course.
Acceptance Criteria
  • Permission checks in course_live/permissions.py use user_has_course_permission for GET requests.
  • Write requests require MANAGE_PAGES_AND_RESOURCES.
  • Users with authz-only roles and view permission can load Live; users without manage permission cannot modify it.
  • Legacy staff and instructors keep their current access.
  • Tests are added or updated.
主要言語
Python
スター
0
フォーク
10
平均マージ
3日 23時間
マージ済み PR(30日)
21

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openedx/openedx-authz のほかの issue

openedx/openedx-authz の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。