Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong repository count under dashboard organizations #11194

Closed
2 of 7 tasks
kullarkert opened this issue Apr 23, 2020 · 0 comments · Fixed by #11339
Closed
2 of 7 tasks

Wrong repository count under dashboard organizations #11194

kullarkert opened this issue Apr 23, 2020 · 0 comments · Fixed by #11339
Labels
Milestone

Comments

@kullarkert
Copy link

  • Gitea version (or commit ref): 1.11.4
  • Git version: doesnt matter
  • Operating system: Ubuntu 18.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

User sees all public and private repository count in Dashboard (under organizations tab), even if private repos are outside of team and user has no rights. When opening company profile then repositories that are shown are correct. User should see only public and team repositories count and not private ones that he has no access to it.

Screenshots

image

zeripath added a commit to zeripath/gitea that referenced this issue May 8, 2020
Correctly set the organization num repos to the number of
accessible repos for the user

Fix go-gitea#11194

Signed-off-by: Andrew Thornton <[email protected]>
lafriks pushed a commit that referenced this issue May 11, 2020
* Correctly set the organization num repos

Correctly set the organization num repos to the number of
accessible repos for the user

Fix #11194

Signed-off-by: Andrew Thornton <[email protected]>

* as per @lunny

Signed-off-by: Andrew Thornton <[email protected]>

* attempt to fix mssql

Signed-off-by: Andrew Thornton <[email protected]>

* Update models/user.go

* Explicit columns

Signed-off-by: Andrew Thornton <[email protected]>

* Add test and fix 0 counted orgs

Signed-off-by: Andrew Thornton <[email protected]>

* remove orgname from api

Signed-off-by: Andrew Thornton <[email protected]>
@lafriks lafriks added this to the 1.12.0 milestone May 11, 2020
ydelafollye pushed a commit to ydelafollye/gitea that referenced this issue Jul 31, 2020
* Correctly set the organization num repos

Correctly set the organization num repos to the number of
accessible repos for the user

Fix go-gitea#11194

Signed-off-by: Andrew Thornton <[email protected]>

* as per @lunny

Signed-off-by: Andrew Thornton <[email protected]>

* attempt to fix mssql

Signed-off-by: Andrew Thornton <[email protected]>

* Update models/user.go

* Explicit columns

Signed-off-by: Andrew Thornton <[email protected]>

* Add test and fix 0 counted orgs

Signed-off-by: Andrew Thornton <[email protected]>

* remove orgname from api

Signed-off-by: Andrew Thornton <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants