aboutsummaryrefslogtreecommitdiff
path: root/internal/db/repo_branch.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/repo_branch.go')
-rw-r--r--internal/db/repo_branch.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/db/repo_branch.go b/internal/db/repo_branch.go
index 22c15b69..dc9e8795 100644
--- a/internal/db/repo_branch.go
+++ b/internal/db/repo_branch.go
@@ -5,6 +5,7 @@
package db
import (
+ "context"
"fmt"
"strings"
@@ -175,7 +176,7 @@ func UpdateOrgProtectBranch(repo *Repository, protectBranch *ProtectBranch, whit
userIDs := tool.StringsToInt64s(strings.Split(whitelistUserIDs, ","))
validUserIDs = make([]int64, 0, len(userIDs))
for _, userID := range userIDs {
- if !Perms.Authorize(userID, repo.ID, AccessModeWrite,
+ if !Perms.Authorize(context.TODO(), userID, repo.ID, AccessModeWrite,
AccessModeOptions{
OwnerID: repo.OwnerID,
Private: repo.IsPrivate,