Repo listings include all repos of org for restricted user #7517

Closed
opened 2025-11-02 07:28:23 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @noerw on GitHub (Jun 28, 2021).

  • Gitea version (or commit ref): 1.14.3
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite

Description

Context:
Have a restricted user that is member in an organization team with access to a subset of repos of that organization.

This restricted user will see all repos of that organization listed when visiting /explore/repos or /<org>.
Visiting the repo page of a repo that is listed, but not part of the team's access, will give a 404.

So there is a mistake in the repo list query for the explore & org page..

Originally created by @noerw on GitHub (Jun 28, 2021). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq) 5. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.14.3 <!-- Please include information on whether you built gitea yourself, used one of our downloads or are using some other package --> <!-- Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc. ---> <!-- If you are using a package or systemd tell us what distribution you are using --> - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite ## Description Context: Have a restricted user that is member in an organization team with access to a subset of repos of that organization. This restricted user will see all repos of that organization listed when visiting `/explore/repos` or `/<org>`. Visiting the repo page of a repo that is listed, but not part of the team's access, will give a 404. So there is a mistake in the repo list query for the explore & org page..
GiteaMirror added the issue/needs-feedbacktype/bug labels 2025-11-02 07:28:23 -06:00
Author
Owner

@wolfogre commented on GitHub (Dec 27, 2022):

I can't reproduce it in the latest version(1.19.0+dev-234-g90237d8ab). Maybe it's an outdated issue?

@wolfogre commented on GitHub (Dec 27, 2022): I can't reproduce it in the latest version(1.19.0+dev-234-g90237d8ab). Maybe it's an outdated issue?
Author
Owner

@lunny commented on GitHub (Dec 27, 2022):

Let's close it for now and please feel free to reopen it.

@lunny commented on GitHub (Dec 27, 2022): Let's close it for now and please feel free to reopen it.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7517