]> source.dussan.org Git - gitea.git/commit
Fix owner team access mode value in team_unit table (#23675)
authoryp05327 <576951401@qq.com>
Mon, 3 Apr 2023 14:36:35 +0000 (23:36 +0900)
committerGitHub <noreply@github.com>
Mon, 3 Apr 2023 14:36:35 +0000 (10:36 -0400)
commit6eb856c614e4ff589b9373670ae26a1cea50339b
tree326a19ffaa52d2c21641358978f304e7784744ba
parent29133f3d04dc3eab9400f677e5765468eecce9ae
Fix owner team access mode value in team_unit table (#23675)

All `access_mode` value of Owner Teams are 0(AccessModeNone) in
`team_unit` table, which should be 4(AccessModeOwner)
In `team` table:

![image](https://user-images.githubusercontent.com/18380374/227409457-1b9660ae-8cf7-49c8-a013-1850b46baebc.png)
In `team_unit` table:

![image](https://user-images.githubusercontent.com/18380374/227409429-a793dd90-4ae1-4191-b95b-e288c591f9fd.png)

ps: In https://github.com/go-gitea/gitea/pull/23630, `access_mode` in
`team_unit` is used to check the team unit permission, but I found that
user can not see issues in owned org repos.
models/migrations/migrations.go
models/migrations/v1_20/v251.go [new file with mode: 0644]
models/organization/org.go