Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Cancancan not working as thought

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

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
35/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
ruby
Lĩnh vực
authorization, backend

Hướng nghiên cứu

Start with app/controllers/courses_controller.rb:14 and trace how authorize! is used for @ongoing_courses. Determine the intended authorization behavior for a list versus its individual elements, then identify the relevant authorization coverage. Done means the behavior matches the clarified expectation and is verified for this controller path.

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

Mô tả

Cancancan is not working as developer has thought
app/controllers/courses_controller.rb:14: authorize! :read, @ongoing_courses

It's checking if user has access to list or something, not if user has access to all elements in a list

Ngôn ngữ chính
Ruby
Star
51
Fork
42
Merge trung bình
1 giờ 27 phút
Pull request đã merge (30 ngày)
1

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 testmycode/tmc-server

Tất cả issue của testmycode/tmc-server

Issue tương tự

Thêm issue về Ruby

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.