Skip to content

Store read access in access for team repositories (#20275)#20276

Merged
6543 merged 2 commits into
go-gitea:release/v1.17from
Gusted:backport-20275
Jul 9, 2022
Merged

Store read access in access for team repositories (#20275)#20276
6543 merged 2 commits into
go-gitea:release/v1.17from
Gusted:backport-20275

Conversation

@Gusted
Copy link
Copy Markdown
Contributor

@Gusted Gusted commented Jul 6, 2022

  • Backport Store read access in access for team repositories #20275
    • Currently when a Team has read access to a organization's non-private repository, their access(in the access table) won't be stored in the database. This cause issues for code that rely on read access being stored, like retrieving all users who have read permission to that repository(even though this is confusing as this doesn't include all registered users). So from now-on if we see that the repository is owned by a organization don't increase the minMode to write permission.
    • Resolves Branch protection user/team dropdowns do not list everyone #20083

- Backport go-gitea#20275
  - Currently when a Team has read access to a organization's non-private repository, their access(in the `access` table) won't be stored in the database. This cause issues for code that rely on read access being stored, like retrieving all users who have read permission to that repository(even though this is confusing as this doesn't include all registered users). So from now-on if we see that the repository is owned by a organization don't increase the `minMode` to write permission.
  - Resolves go-gitea#20083
@Gusted Gusted added this to the 1.17.0 milestone Jul 6, 2022
@Gusted Gusted added the type/bug label Jul 6, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jul 7, 2022
@zeripath zeripath changed the title Store read access in access for team repo's (#20275) Store read access in access for team reposirories Jul 9, 2022
@zeripath zeripath changed the title Store read access in access for team reposirories Store read access in access for team repositories (#20275) Jul 9, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 9, 2022
@6543
Copy link
Copy Markdown
Member

6543 commented Jul 9, 2022

🚀

@6543 6543 merged commit d371ced into go-gitea:release/v1.17 Jul 9, 2022
@Gusted Gusted deleted the backport-20275 branch July 9, 2022 18:03
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants