mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 16:47:51 +02:00
Remove incorrect "db.DefaultContext" usages (#35366)
This commit is contained in:
1 parent
7aef7ea2d4
commit
0cbaa0b662
256 files changed
+1951
-2098
No files matched your search
@@ -10,7 +10,6 @@ import (
|
||||
"testing"
|
||||
|
||||
auth_model "code.gitea.io/gitea/models/auth"
|
||||
"code.gitea.io/gitea/models/db"
|
||||
org_model "code.gitea.io/gitea/models/organization"
|
||||
"code.gitea.io/gitea/models/perm"
|
||||
unit_model "code.gitea.io/gitea/models/unit"
|
||||
@@ -64,7 +63,7 @@ func TestAPIOrgCreateRename(t *testing.T) {
|
||||
|
||||
t.Run("CheckPermission", func(t *testing.T) {
|
||||
// Check owner team permission
|
||||
ownerTeam, _ := org_model.GetOwnerTeam(db.DefaultContext, apiOrg.ID)
|
||||
ownerTeam, _ := org_model.GetOwnerTeam(t.Context(), apiOrg.ID)
|
||||
for _, ut := range unit_model.AllRepoUnitTypes {
|
||||
up := perm.AccessModeOwner
|
||||
if ut == unit_model.TypeExternalTracker || ut == unit_model.TypeExternalWiki {
|
||||
|
||||
Reference in new issue
Block a user