[PR #4645] [MERGED] Site admin could create repos even MAX_CREATION_LIMIT=0 #17447

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4645
Author: @lunny
Created: 8/8/2018
Status: Merged
Merged: 8/9/2018
Merged by: @lunny

Base: masterHead: lunny/fix_create_limit


📝 Commits (3)

  • d13939a site admin could create repos even MAX_CREATION_LIMIT=0
  • 0d7122a Optimize if structure
  • 1c118e6 Merge branch 'master' into lunny/fix_create_limit

📊 Changes

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

View changed files

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

📄 Description

When MAX_CREATION_LIMIT=0, site admin could create repos on any account but not organization, it will result in 500. This PR will fix that issue. That means, site admin could create repos on any account or organization even
MAX_CREATION_LIMIT=0


🔄 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/4645 **Author:** [@lunny](https://github.com/lunny) **Created:** 8/8/2018 **Status:** ✅ Merged **Merged:** 8/9/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/fix_create_limit` --- ### 📝 Commits (3) - [`d13939a`](https://github.com/go-gitea/gitea/commit/d13939a39f1b580b5657b2e021c9cd6aedf4df5e) site admin could create repos even MAX_CREATION_LIMIT=0 - [`0d7122a`](https://github.com/go-gitea/gitea/commit/0d7122ab9d219a3569475f669e04c1a0708aae5f) Optimize if structure - [`1c118e6`](https://github.com/go-gitea/gitea/commit/1c118e6b4b288bb75fbc5de399fd58514ca15ff9) Merge branch 'master' into lunny/fix_create_limit ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+1 -1) </details> ### 📄 Description When MAX_CREATION_LIMIT=0, site admin could create repos on any account but not organization, it will result in 500. This PR will fix that issue. That means, site admin could create repos on any account or organization even MAX_CREATION_LIMIT=0 --- <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:27:33 -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#17447