aboutsummaryrefslogtreecommitdiffstats
path: root/services/pull/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/pull/update.go')
-rw-r--r--services/pull/update.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/pull/update.go b/services/pull/update.go
index 6ff554e612..bd6a37b277 100644
--- a/services/pull/update.go
+++ b/services/pull/update.go
@@ -99,7 +99,7 @@ func IsUserAllowedToUpdate(ctx context.Context, pull *issues_model.PullRequest,
BaseBranch: pull.HeadBranch,
}
- err = pr.LoadProtectedBranch()
+ err = pr.LoadProtectedBranch(ctx)
if err != nil {
return false, false, err
}