[PR #633] [MERGED] fix 500 when delete orgnization #15502

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/633
Author: @appleboy
Created: 1/10/2017
Status: Merged
Merged: 1/11/2017
Merged by: @lunny

Base: masterHead: org


📝 Commits (1)

  • eddc109 refactor: Add new deleteOrg func.

📊 Changes

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

View changed files

📝 models/org.go (+50 -9)

📄 Description

Fix #614

Error Message

[...uters/org/setting.go:133 SettingsDelete()] [E] DeleteOrganization: deleteUser: user still has ownership of repositories [uid: 2]

See: https://github.com/go-gitea/gitea/blob/master/models/user.go#L940-L943

ref commit: ba134bd27a

cc @lunny


🔄 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/633 **Author:** [@appleboy](https://github.com/appleboy) **Created:** 1/10/2017 **Status:** ✅ Merged **Merged:** 1/11/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `org` --- ### 📝 Commits (1) - [`eddc109`](https://github.com/go-gitea/gitea/commit/eddc109a8198c0408d5a4db3e8ce8df5239ff01a) refactor: Add new deleteOrg func. ### 📊 Changes **1 file changed** (+50 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `models/org.go` (+50 -9) </details> ### 📄 Description Fix #614 Error Message > [...uters/org/setting.go:133 SettingsDelete()] [E] DeleteOrganization: deleteUser: user still has ownership of repositories [uid: 2] See: https://github.com/go-gitea/gitea/blob/master/models/user.go#L940-L943 ref commit: https://github.com/go-gitea/gitea/commit/ba134bd27abe099efcd748773c410b3aa78521fc cc @lunny --- <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 11:48:02 -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#15502