[PR #927] [MERGED] feat: Able to disable non-admin to create new organization #15657

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/927
Author: @appleboy
Created: 2/14/2017
Status: Merged
Merged: 2/14/2017
Merged by: @lunny

Base: masterHead: org2


📝 Commits (1)

  • bf806d7 feat: Able to disable non-admin to create new organization

📊 Changes

7 files changed (+42 additions, -3 deletions)

View changed files

📝 cmd/web.go (+8 -2)
📝 conf/app.ini (+2 -0)
📝 models/user.go (+1 -1)
📝 models/user_test.go (+21 -0)
📝 modules/setting/setting.go (+7 -0)
📝 routers/admin/users.go (+1 -0)
📝 templates/admin/user/edit.tmpl (+2 -0)

📄 Description

Maybe fix #783

  • support disable non-admin to create new organization
  • hide allow_create_organization ui on edit user page
  • add unit testing

screen shot 2017-02-14 at 3 46 00 pm

cc @lunny @tboerger @ethantkoenig


🔄 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/927 **Author:** [@appleboy](https://github.com/appleboy) **Created:** 2/14/2017 **Status:** ✅ Merged **Merged:** 2/14/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `org2` --- ### 📝 Commits (1) - [`bf806d7`](https://github.com/go-gitea/gitea/commit/bf806d7efffdd9d6dae13a8a9560f5db7c442afa) feat: Able to disable non-admin to create new organization ### 📊 Changes **7 files changed** (+42 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+8 -2) 📝 `conf/app.ini` (+2 -0) 📝 `models/user.go` (+1 -1) 📝 `models/user_test.go` (+21 -0) 📝 `modules/setting/setting.go` (+7 -0) 📝 `routers/admin/users.go` (+1 -0) 📝 `templates/admin/user/edit.tmpl` (+2 -0) </details> ### 📄 Description Maybe fix #783 * support disable non-admin to create new organization * hide `allow_create_organization` ui on edit user page * add unit testing ![screen shot 2017-02-14 at 3 46 00 pm](https://cloud.githubusercontent.com/assets/21979/22920906/52b8f588-f2d2-11e6-9d42-f93843786fb3.png) cc @lunny @tboerger @ethantkoenig --- <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:51:40 -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#15657