mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
#2156 admin able to edit organization max repo creation
This commit is contained in:
parent
76bdbcc969
commit
59c965a5ec
12 changed files with 30 additions and 18 deletions
|
@ -66,6 +66,10 @@ func SettingsPost(ctx *middleware.Context, form auth.UpdateOrgSettingForm) {
|
|||
org.Name = form.Name
|
||||
org.LowerName = strings.ToLower(form.Name)
|
||||
|
||||
if ctx.User.IsAdmin {
|
||||
org.MaxRepoCreation = form.MaxRepoCreation
|
||||
}
|
||||
|
||||
org.FullName = form.FullName
|
||||
org.Description = form.Description
|
||||
org.Website = form.Website
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue