app.ini settings cause "new organization" not shown any more #2959

Closed
opened 2025-11-02 04:55:21 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @vosdbk on GitHub (Feb 22, 2019).

  • Gitea version (or commit ref): 1.7.2
  • Git version: 2.20.1
  • Operating system: Centos 7 / Windows 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL with Centos 7
    • MSSQL
    • SQLite with Windows 10
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

Once you change the follow settings from

[admin]
DISABLE_REGULAR_ORG_CREATION = false
[service]
DEFAULT_ALLOW_CREATE_ORGANIZATION = true

to

[admin]
DISABLE_REGULAR_ORG_CREATION = true
[service]
DEFAULT_ALLOW_CREATE_ORGANIZATION = false

Then, what ever you change it to what, the menu "new organization" will be not shown any more for existed users


Screenshots

  1. The settings with running gitea
    settings in app.ini
  2. The interface you get, just missing "new organization"
    user interface
Originally created by @vosdbk on GitHub (Feb 22, 2019). - Gitea version (or commit ref): 1.7.2 - Git version: 2.20.1 - Operating system: Centos 7 / Windows 10 - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL with Centos 7 - [ ] MSSQL - [x] SQLite with Windows 10 - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description Once you change the follow settings from ``` [admin] DISABLE_REGULAR_ORG_CREATION = false [service] DEFAULT_ALLOW_CREATE_ORGANIZATION = true ``` to ``` [admin] DISABLE_REGULAR_ORG_CREATION = true [service] DEFAULT_ALLOW_CREATE_ORGANIZATION = false ``` Then, what ever you change it to what, the menu "new organization" will be not shown any more for existed users --- ## Screenshots 1. The settings with running gitea ![settings in app.ini](https://user-images.githubusercontent.com/2115591/53250304-1e045a80-36f5-11e9-9755-d26dec801a87.png) 2. The interface you get, just missing "new organization" ![user interface](https://user-images.githubusercontent.com/2115591/53250314-22c90e80-36f5-11e9-8f70-a13bbd6da597.png)
Author
Owner

@vosdbk commented on GitHub (Feb 22, 2019):

PS:
If you change it to "allowed to create new organization" then register a new user, this new user has the create menu, but existed user such as register during "not allowed to create new organization" time, won't see the create menu any more

@vosdbk commented on GitHub (Feb 22, 2019): PS: If you change it to "allowed to create new organization" then register a new user, this new user has the create menu, but existed user such as register during "not allowed to create new organization" time, won't see the create menu any more
Author
Owner

@adelowo commented on GitHub (Feb 22, 2019):

That value is persisted to the database for each user so the user created during "not allowed" has the field in the DB as "not allowed".

@adelowo commented on GitHub (Feb 22, 2019): That value is persisted to the database for each user so the user created during "not allowed" has the field in the DB as "not allowed".
Author
Owner

@techknowlogick commented on GitHub (Feb 22, 2019):

Closing per @adelowo’s comment.

@techknowlogick commented on GitHub (Feb 22, 2019): Closing per @adelowo’s comment.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2959