Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Cancancan not working as thought

Open
#259 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Ruby
Stars
51
Forks
42
Avg merge
1h 27m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from testmycode/tmc-server

All issues in testmycode/tmc-server

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.