[PR #4525] [MERGED] Fix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (#4519) #17410

Closed
opened 2025-11-02 13:13:23 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4525
Author: @SagePtr
Created: 7/27/2018
Status: Merged
Merged: 7/27/2018
Merged by: @lafriks

Base: masterHead: master


📝 Commits (1)

  • 6dc9fea Fix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (#4519)

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 models/branches.go (+1 -1)

📄 Description

Fixes #4519

WhitelistTeamIDs was checked instead of MergeWhitelistTeamIDs in CanUserMerge (WhitelistTeamIDs is whitelist to push, not to merge).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4525 **Author:** [@SagePtr](https://github.com/SagePtr) **Created:** 7/27/2018 **Status:** ✅ Merged **Merged:** 7/27/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`6dc9fea`](https://github.com/go-gitea/gitea/commit/6dc9fea8cb08f2d9cca397b6172a78dce47eae4c) Fix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (#4519) ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/branches.go` (+1 -1) </details> ### 📄 Description Fixes #4519 WhitelistTeamIDs was checked instead of MergeWhitelistTeamIDs in CanUserMerge (WhitelistTeamIDs is whitelist to push, not to merge). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 13:13:23 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17410