mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-24 00:00:02 +02:00
chore: Remove UpdateTeamUnits
- Introduced in0b3ea42847
and removed inb7221bec34
.
This commit is contained in:
parent
66d252bc2b
commit
9a406757f5
3 changed files with 1 additions and 24 deletions
|
@ -272,8 +272,7 @@ func TestRepoPermissionPrivateOrgRepo(t *testing.T) {
|
|||
|
||||
// update team information and then check permission
|
||||
team := unittest.AssertExistsAndLoadBean(t, &organization.Team{ID: 5})
|
||||
err = organization.UpdateTeamUnits(db.DefaultContext, team, nil)
|
||||
require.NoError(t, err)
|
||||
unittest.AssertSuccessfulDelete(t, &organization.TeamUnit{TeamID: team.ID})
|
||||
perm, err = access_model.GetUserRepoPermission(db.DefaultContext, repo, owner)
|
||||
require.NoError(t, err)
|
||||
for _, unit := range repo.Units {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue