diff options
Diffstat (limited to 'services')
-rw-r--r-- | services/pull/merge.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/services/pull/merge.go b/services/pull/merge.go index 5e077f6dc0..b423c663ea 100644 --- a/services/pull/merge.go +++ b/services/pull/merge.go @@ -487,9 +487,6 @@ 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 p.IsAdmin() { - return true, nil - } if !p.CanWrite(models.UnitTypeCode) { return false, nil } |