forgejo/models/organization
yp05327 bbf83f5d4b
Improve permission check of packages (#23879)
At first, we have one unified team unit permission which is called
`Team.Authorize` in DB.
But since https://github.com/go-gitea/gitea/pull/17811, we allowed
different units to have different permission.

The old code is only designed for the old version. So after #17811, if
org users have write permission of other units, but have no permission
of packages, they can also get write permission of packages.

Co-authored-by: delvh <dev.lh@web.de>
2023-04-06 22:18:29 +08:00
..
main_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
mini_org.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
org.go Fix owner team access mode value in team_unit table (#23675) 2023-04-03 10:36:35 -04:00
org_repo.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
org_test.go Improve permission check of packages (#23879) 2023-04-06 22:18:29 +08:00
org_user.go Rename almost all Ctx functions (#22071) 2022-12-10 10:46:31 +08:00
org_user_test.go refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
team.go Rename GetUnits to LoadUnits (#22970) 2023-02-19 16:31:39 +08:00
team_invite.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
team_invite_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
team_list.go Rename GetUnits to LoadUnits (#22970) 2023-02-19 16:31:39 +08:00
team_repo.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
team_test.go refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
team_unit.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
team_user.go Support org/user level projects (#22235) 2023-01-20 19:42:33 +08:00