possible bug: User can access repos not assigned to them #2541

Closed
opened 2025-11-02 04:39:52 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @hardikdangar on GitHub (Nov 18, 2018).

  • Gitea version (or commit ref): 1.5.0 built with: bindata, sqlite
  • Git version: 2.14.1
  • Operating system: ubuntu 16.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • [x ] SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • [X ] Not relevant
  • Log gist:

Description

If you create organization and assign user to organization and create repository via organization. then that repository can be accessed by member who is not a part of that organization via url. they can see the code directly.

If i make the repo private then team members can not see the repo. so is there any way i can force non oganization users to not see the repos they are not part of organization.
...

Originally created by @hardikdangar on GitHub (Nov 18, 2018). - Gitea version (or commit ref): 1.5.0 built with: bindata, sqlite - Git version: 2.14.1 - Operating system: ubuntu 16.04 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [X ] Not relevant - Log gist: ## Description If you create organization and assign user to organization and create repository via organization. then that repository can be accessed by member who is not a part of that organization via url. they can see the code directly. If i make the repo private then team members can not see the repo. so is there any way i can force non oganization users to not see the repos they are not part of organization. ...
GiteaMirror added the issue/duplicate label 2025-11-02 04:39:52 -06:00
Author
Owner

@lunny commented on GitHub (Nov 18, 2018):

This is designed and we already have a PR to fix your issue. see https://github.com/go-gitea/gitea/pull/1763

@lunny commented on GitHub (Nov 18, 2018): This is designed and we already have a PR to fix your issue. see https://github.com/go-gitea/gitea/pull/1763
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2541