You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Channel language_exists and languages actions skip the channel permission check #6399
Confirm that you’ve read the guidelines in your comment.
Overview
The channel language_exists and languages actions load the channel through Channel.objects rather than get_object(). Any logged-in user can read the content languages of a private channel they can't view, given its id, and the response also shows whether that channel id exists. The other detail actions on the viewset use get_object().
Reproduced: a logged-in user with no access to a private channel gets 200 with its languages from GET /api/channel/<id>/languages. The same user gets 404 from GET /api/channel/<id>.
A logged-in user who can't view a channel gets 404 from both GET /api/channel/<id>/languages and GET /api/channel/<id>/language_exists, the same as for a nonexistent channel id.
Editors and viewers of the channel get the same responses as before.
Testing
Regression tests cover a non-member, a viewer and a nonexistent id for both actions.
AI usage
I chose which audit findings belong in #6398 and set the access pattern. Claude Code found and reproduced this gap and drafted this issue.
Activity
learning-equality-bot commentedon Nov 15, 2026
Hi! 👋
This issue is available for contribution and supports self-assignment. Here's how to get started:
/assignto assign yourself to this issue📖 Read the Contributing guidelines before starting.
Are you preparing for Google Summer of Code? See our GSoC guidelines.
adibmbrk commentedon Nov 17, 2026
/assign
learning-equality-bot commentedon Nov 17, 2026
Hi! 👋
You can't be assigned to this issue right now because you've reached the 2-issue limit.
Your current assignments:
Once a slot opens up, come back and comment
/assignagain. 😊Are you preparing for Google Summer of Code? See our GSoC guidelines.
adibmbrk commentedon Nov 17, 2026
Hi @rtibbles @AlexVelezLl , Can you unassign me from this issue learningequality/kolibri#15853 (comment) and assign me to this issue, as that issue is being worked on by someone else. Thanks
learning-equality-bot commentedon Nov 17, 2026
Hi! 👋
Thanks for your interest! This issue supports self-assignment. Comment
/assignto assign yourself.Visit Contributing guidelines to learn about the contributing process. 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.
AlexVelezLl commentedon Nov 17, 2026
Thanks for letting us know, @adibmbrk. Assigned!