File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ func EditTeam(ctx *context.APIContext) {
262
262
}
263
263
264
264
if form .CanCreateOrgRepo != nil {
265
- team .CanCreateOrgRepo = * form .CanCreateOrgRepo
265
+ team .CanCreateOrgRepo = team . IsOwnerTeam () || * form .CanCreateOrgRepo
266
266
}
267
267
268
268
if len (form .Name ) > 0 {
Original file line number Diff line number Diff line change @@ -416,7 +416,11 @@ func EditTeamPost(ctx *context.Context) {
416
416
isIncludeAllChanged = true
417
417
t .IncludesAllRepositories = includesAllRepositories
418
418
}
419
+ t .CanCreateOrgRepo = form .CanCreateOrgRepo
420
+ } else {
421
+ t .CanCreateOrgRepo = true
419
422
}
423
+
420
424
t .Description = form .Description
421
425
if t .AccessMode < perm .AccessModeAdmin {
422
426
units := make ([]organization.TeamUnit , 0 , len (unitPerms ))
@@ -433,7 +437,6 @@ func EditTeamPost(ctx *context.Context) {
433
437
return
434
438
}
435
439
}
436
- t .CanCreateOrgRepo = form .CanCreateOrgRepo
437
440
438
441
if ctx .HasError () {
439
442
ctx .HTML (http .StatusOK , tplTeamNew )
You can’t perform that action at this time.
0 commit comments