Allow authz-only roles to load Pages & Resources → Live
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ả
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
- Log in as a user with an authz-only role (no legacy course role).
- Open Pages & Resources → Live.
- Observe 403 responses from
course_live/providersandcourse_live/course.
Acceptance Criteria
- Permission checks in
course_live/permissions.pyuseuser_has_course_permissionfor 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openedx/openedx-authz
-
willow
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openedx/openedx-authz#604 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
willow
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openedx/openedx-authz#597 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
willow
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
openedx/openedx-authz#579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Willow release testingCó thể đã có người làm @mariajgrimaldi đã nhận 2 ngày trước. Đang mởwillow
openedx/openedx-authz#609 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update Willow BTR test descriptions for current AuthZ behaviorCó thể đã có người làm @mariajgrimaldi đã nhận 2 ngày trước. Đang mởwillow
openedx/openedx-authz#608 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của openedx/openedx-authz
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 91/100
marimo-team/marimo#11768 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
btclib-org/btclib-node#2358 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
Maintainer thường phản hồi trong vòng 7 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MTSWebServices/RecTools#330 ·