Organization repository count includes private repositories #11961

Closed
opened 2025-11-02 09:52:57 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @jrjake on GitHub (Nov 6, 2023).

Description

If I mark a repository as private in an organization, that repository is still shown in the count for users who can't access it. See example below.

Gitea Version

1.20.5

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

It states there is 1 repository (the private one) but has 0 in the list.

Git Version

2.39.2

Operating System

Debian 12

How are you running Gitea?

Docker

Database

PostgreSQL

Originally created by @jrjake on GitHub (Nov 6, 2023). ### Description If I mark a repository as private in an organization, that repository is still shown in the count for users who can't access it. See example below. ### Gitea Version 1.20.5 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![image](https://github.com/go-gitea/gitea/assets/118236421/d0fc7b34-0d9c-42d3-b6aa-09d40679ce75) It states there is 1 repository (the private one) but has 0 in the list. ### Git Version 2.39.2 ### Operating System Debian 12 ### How are you running Gitea? Docker ### Database PostgreSQL
GiteaMirror added the issue/needs-feedbacktype/bug labels 2025-11-02 09:52:57 -06:00
Author
Owner

@lng2020 commented on GitHub (Nov 6, 2023):

Could u provide more information about what's the type of the org, public or Private? And what's the relationship between the user and the org?

@lng2020 commented on GitHub (Nov 6, 2023): Could u provide more information about what's the type of the org, public or Private? And what's the relationship between the user and the org?
Author
Owner

@jrjake commented on GitHub (Nov 6, 2023):

It is public organization with private repository. The screenshot is taken when not signed in.

@jrjake commented on GitHub (Nov 6, 2023): It is public organization with private repository. The screenshot is taken when not signed in.
Author
Owner

@JakobDev commented on GitHub (Nov 6, 2023):

This is already fixed with #25928

@JakobDev commented on GitHub (Nov 6, 2023): This is already fixed with #25928
Author
Owner

@jrjake commented on GitHub (Nov 7, 2023):

I see in that PR mentions of backport, should it be fixed in 1.20.5 (current version I am running)? Or did backport not happen?

@jrjake commented on GitHub (Nov 7, 2023): I see in that PR mentions of backport, should it be fixed in 1.20.5 (current version I am running)? Or did backport not happen?
Author
Owner

@lng2020 commented on GitHub (Nov 7, 2023):

It seems to haven't been backported. Looks like there are many conflicts.

@lng2020 commented on GitHub (Nov 7, 2023): It seems to haven't been backported. Looks like there are many conflicts.
Author
Owner

@jrjake commented on GitHub (Nov 7, 2023):

Okay, makes sense. I will close this issue and re-open if I encounter it after release and upgrade to 1.21. Thank you all!

@jrjake commented on GitHub (Nov 7, 2023): Okay, makes sense. I will close this issue and re-open if I encounter it after release and upgrade to 1.21. Thank you all!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11961