Public repositories of a private organization are not hidden #2997

Closed
opened 2025-11-02 04:56:37 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @gzsombor on GitHub (Mar 3, 2019).

Description

TLDR: Public repositories of a private organization are not hidden properly.
1, create a private organization: secretorg
2, create a new repository in it, without marking as private, defaultrepo
3, check : https://try.gitea.io/secretorg/defaultrepo/ -> repository navigation header is visible, with a 404 in the middle
4, check : https://try.gitea.io/secretorg/defaultrepo/ssues - everything visible, etc

For a private organization, I would expect, that their repositories would be invisible for non-members.

Screenshots

gitea_1
gitea_2

Originally created by @gzsombor on GitHub (Mar 3, 2019). - Gitea version (or commit ref): 8e202e28ad80452ced90ede3540e1662fa6d7da7 - Git version: - Operating system: Linux - Database (use `[x]`): - [X] PostgreSQL - [X] MySQL - [X] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [X] Yes (provide example URL) - https://try.gitea.io/secretorg/defaultrepo/ - [ ] No - [ ] Not relevant - Log gist: ## Description TLDR: Public repositories of a private organization are not hidden properly. 1, create a private organization: _secretorg_ 2, create a new repository in it, without marking as private, _defaultrepo_ 3, check : https://try.gitea.io/secretorg/defaultrepo/ -> repository navigation header is visible, with a 404 in the middle 4, check : https://try.gitea.io/secretorg/defaultrepo/ssues - everything visible, etc For a private organization, I would expect, that their repositories would be invisible for non-members. ## Screenshots ![gitea_1](https://user-images.githubusercontent.com/66230/53703315-decebb80-3e10-11e9-87c1-9f4a795ba66e.png) ![gitea_2](https://user-images.githubusercontent.com/66230/53703316-decebb80-3e10-11e9-8080-e157f7d0a667.png) <!-- **If this issue involves the Web Interface, please include a screenshot** -->
GiteaMirror added the type/bug label 2025-11-02 04:56:37 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2997