From cc5df266808361c1dd3a1d17cbba712826a93d7e Mon Sep 17 00:00:00 2001 From: JakobDev Date: Tue, 3 Oct 2023 12:30:41 +0200 Subject: Even more `db.DefaultContext` refactor (#27352) Part of #27065 --------- Co-authored-by: Lunny Xiao Co-authored-by: delvh --- modules/repository/delete.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/repository/delete.go') diff --git a/modules/repository/delete.go b/modules/repository/delete.go index 43c52c933d..04af98beef 100644 --- a/modules/repository/delete.go +++ b/modules/repository/delete.go @@ -22,7 +22,7 @@ func CanUserDelete(ctx context.Context, repo *repo_model.Repository, user *user_ } if repo.Owner.IsOrganization() { - isAdmin, err := organization.OrgFromUser(repo.Owner).IsOrgAdmin(user.ID) + isAdmin, err := organization.OrgFromUser(repo.Owner).IsOrgAdmin(ctx, user.ID) if err != nil { return false, err } -- cgit v1.2.3