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

Đang mở
#599 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
74/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
authorization

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Python
Star
0
Fork
10
Merge trung bình
5 ngày 9 giờ
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của openedx/openedx-authz

Tất cả issue của openedx/openedx-authz

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.