Przeglądaj źródła

fix (#11066)

tags/v1.13.0-dev
6543 4 lat temu
rodzic
commit
f7ecc2bee7
No account linked to committer's email address
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3
    0
      services/pull/merge.go

+ 3
- 0
services/pull/merge.go Wyświetl plik

@@ -535,6 +535,9 @@ func IsSignedIfRequired(pr *models.PullRequest, doer *models.User) (bool, error)

// IsUserAllowedToMerge check if user is allowed to merge PR with given permissions and branch protections
func IsUserAllowedToMerge(pr *models.PullRequest, p models.Permission, user *models.User) (bool, error) {
if user == nil {
return false, nil
}

err := pr.LoadProtectedBranch()
if err != nil {

Ładowanie…
Anuluj
Zapisz