Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
2 tasks done
igsol opened this issue Apr 8, 2019 · 6 comments
Closed
2 tasks done
Labels
Milestone

Comments

@igsol
Copy link

igsol commented 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
@lunny
Copy link
Member

lunny commented Apr 9, 2019

There is also another config item

[admin]
DISABLE_REGULAR_ORG_CREATION = false

to control organization creation.

@adelowo
Copy link
Member

adelowo commented Apr 9, 2019

Too many options ?

@lunny
Copy link
Member

lunny commented Apr 11, 2019

Yes, maybe only one is necessary.

@igsol
Copy link
Author

igsol commented 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.

@lafriks
Copy link
Member

lafriks commented 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

@zeripath
Copy link
Contributor

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

@lafriks lafriks modified the milestones: 1.9.0, 1.8.2 May 24, 2019
jeffliu27 pushed a commit to jeffliu27/gitea that referenced this issue Jul 18, 2019
…gitea#7017)

Fixed go-gitea#6542

When creating users DefaultAllowCreateOrganization was ignored.

Signed-off-by: Julian Picht <julian.picht@gmail.com>

* fix TestCreateUser_Issue5882

Signed-off-by: Julian Picht <julian.picht@gmail.com>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants