Skip to content

Fix visibility of organization repositories #2400

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

Conversation

Morlinest
Copy link
Member

Fixes #2399.

@ethantkoenig
Copy link
Member

We shouldn't assume that the searcher doesn't have access to any of the privates repos in his/her organizations.

For instance, the searcher might be the owner of an organization, and therefore should have access to that organization's private repos.

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 26, 2017
@Morlinest
Copy link
Member Author

@ethantkoenig I did tests before pushing this PR. It's working because if you are owner or any type of member with rights to repositories, you are in "access" table (I was also checking DB table). So this is perfectly fine and you see everything you should see.

@Morlinest
Copy link
Member Author

That means, if you use Collaborate option, you see private repositories of organization too, if not, you see only public repositories of organization you are in.

@Morlinest Morlinest force-pushed the fix/search-repository-access-rights branch from 2635927 to 6017733 Compare August 26, 2017 15:04
@Morlinest
Copy link
Member Author

Closing in favor of #2371.

@Morlinest Morlinest closed this Sep 4, 2017
@Morlinest Morlinest deleted the fix/search-repository-access-rights branch September 21, 2017 10:00
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dashboard shows all organization repositories, not respecting access rights
3 participants