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

Collaborators in repositories in private organisations cannot access repository #6962

Closed
3 of 7 tasks
zeripath opened this issue May 15, 2019 · 1 comment · Fixed by #6965
Closed
3 of 7 tasks

Collaborators in repositories in private organisations cannot access repository #6962

zeripath opened this issue May 15, 2019 · 1 comment · Fixed by #6965
Labels

Comments

@zeripath
Copy link
Contributor

Description

If I create a repository in a private organization and add a collaborator who is not a member of that organization they cannot access the repository despite it being it appearing on their dashboard.

Screenshots

Screenshot from 2019-05-15 20-54-32
Screenshot from 2019-05-15 20-54-29

@mrsdizzie
Copy link
Member

This seems to be from @lunny PR #6743

if repo.Owner.IsOrganization() && !HasOrgVisible(repo.Owner, user) {
perm.AccessMode = AccessModeNone
return
}

Maybe there needs to be a check here if they are a collaborator (similar as below) and set access perms/not return if so?

mrsdizzie added a commit to mrsdizzie/gitea that referenced this issue May 16, 2019
Handle case where an orginization is private but a user who is not a
member of the orgninization has been added as a collaborator of a repo
within that org

Fixes go-gitea#6962
techknowlogick pushed a commit that referenced this issue May 16, 2019
Handle case where an orginization is private but a user who is not a
member of the orgninization has been added as a collaborator of a repo
within that org

Fixes #6962
mrsdizzie added a commit to mrsdizzie/gitea that referenced this issue May 16, 2019
Handle case where an orginization is private but a user who is not a
member of the orgninization has been added as a collaborator of a repo
within that org

Fixes go-gitea#6962
techknowlogick pushed a commit that referenced this issue May 16, 2019
* Allow collaborators to view repo owned private org (#6965)

Handle case where an orginization is private but a user who is not a
member of the orgninization has been added as a collaborator of a repo
within that org

Fixes #6962

* Match release/v1.8 fixtures
@lunny lunny added the type/bug label May 17, 2019
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this issue Jul 18, 2019
Handle case where an orginization is private but a user who is not a
member of the orgninization has been added as a collaborator of a repo
within that org

Fixes go-gitea#6962
@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