-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Description
- Gitea version (or commit ref): Actual ( Probably from d67b278 )
- Git version:
- Operating system:
- Database (use
[x]
):- [ x] PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- [ x] Yes
- No
- Not relevant
- Log gist:
Description
In the user setting is possible to set the creation of the organization from the flag "May Create Organizations"
The API EDIT USER /admin/users/{username} is missing of the flag allow_create_organization in the Model that simulate this flag
Changes
This is a ( probably incomplete ) list of the files to modify (Sorry I don't know Go... :-( )
File to modify:
gitea/routers/api/v1/admin/user.go
Line 157 in 6ca8fbd
adding lines:
if form.AllowCreateOrganization != nil {
u.AllowCreateOrganization = *form.AllowCreateOrganization
}
gitea/templates/swagger/v1_json.tmpl
Line 6503 in 6ca8fbd
"allow_import_local": { |
adding lines:
"allow_create_organization": {
"type": "boolean",
"x-go-name": "AllowCreateOrganization"
},