"DEFAULT_ALLOW_CREATE_ORGANIZATION = false" is ignored during new user creation #3155

Closed
opened 2025-11-02 05:02:14 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @igsol on GitHub (Apr 8, 2019).

  • Gitea version: 1.8.0-rc2
  • Operating system: Linux
  • Database:
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Not relevant

Description

Precondition:

[service]
DEFAULT_ALLOW_CREATE_ORGANIZATION = false

After a brand new user is created he/she is able to create organization.

Screenshots

  1. image
  2. image
Originally created by @igsol on GitHub (Apr 8, 2019). - Gitea version: 1.8.0-rc2 - Operating system: Linux - Database: - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [x] Not relevant ## Description Precondition: ```ini [service] DEFAULT_ALLOW_CREATE_ORGANIZATION = false ``` After a brand new user is created he/she is able to create organization. ## Screenshots 1. ![image](https://user-images.githubusercontent.com/14091049/55725632-c60c8380-5a16-11e9-8d70-9ca5f55052c0.png) 2. ![image](https://user-images.githubusercontent.com/14091049/55725790-0d930f80-5a17-11e9-95da-6b07cf9fb746.png)
GiteaMirror added the type/bug label 2025-11-02 05:02:14 -06:00
Author
Owner

@lunny commented on GitHub (Apr 9, 2019):

There is also another config item

[admin]
DISABLE_REGULAR_ORG_CREATION = false

to control organization creation.

@lunny commented on GitHub (Apr 9, 2019): There is also another config item ```ini [admin] DISABLE_REGULAR_ORG_CREATION = false ``` to control organization creation.
Author
Owner

@adelowo commented on GitHub (Apr 9, 2019):

Too many options ?

@adelowo commented on GitHub (Apr 9, 2019): Too many options ?
Author
Owner

@lunny commented on GitHub (Apr 11, 2019):

Yes, maybe only one is necessary.

@lunny commented on GitHub (Apr 11, 2019): Yes, maybe only one is necessary.
Author
Owner

@igsol commented on GitHub (Apr 11, 2019):

@lunny , thanks for [admin] DISABLE_REGULAR_ORG_CREATION = false, I wasn't aware about it.
Despite the non obvious name, actually it's what I do really need.

@igsol commented on GitHub (Apr 11, 2019): @lunny , thanks for `[admin] DISABLE_REGULAR_ORG_CREATION = false`, I wasn't aware about it. Despite the non obvious name, actually it's what I do really need.
Author
Owner

@lafriks commented on GitHub (May 23, 2019):

DEFAULT_ALLOW_CREATE_ORGANIZATION is used in ldap sync and user creation so this should be kept. Don't know about use case for disabling org creation completely

@lafriks commented on GitHub (May 23, 2019): `DEFAULT_ALLOW_CREATE_ORGANIZATION` is used in ldap sync and user creation so this should be kept. Don't know about use case for disabling org creation completely
Author
Owner

@zeripath commented on GitHub (May 23, 2019):

#7017 will rewire it back in. Restoring it's functionality

@zeripath commented on GitHub (May 23, 2019): #7017 will rewire it back in. Restoring it's functionality
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3155