@@ -81,6 +81,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, mode perm.Acc
8181 allowRebaseUpdate := false
8282 defaultDeleteBranchAfterMerge := false
8383 defaultMergeStyle := repo_model .MergeStyleMerge
84+ defaultAllowMaintainerEdit := false
8485 if unit , err := repo .GetUnit (ctx , unit_model .TypePullRequests ); err == nil {
8586 config := unit .PullRequestsConfig ()
8687 hasPullRequests = true
@@ -92,6 +93,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, mode perm.Acc
9293 allowRebaseUpdate = config .AllowRebaseUpdate
9394 defaultDeleteBranchAfterMerge = config .DefaultDeleteBranchAfterMerge
9495 defaultMergeStyle = config .GetDefaultMergeStyle ()
96+ defaultAllowMaintainerEdit = config .DefaultAllowMaintainerEdit
9597 }
9698 hasProjects := false
9799 if _ , err := repo .GetUnit (ctx , unit_model .TypeProjects ); err == nil {
@@ -182,6 +184,7 @@ func innerToRepo(ctx context.Context, repo *repo_model.Repository, mode perm.Acc
182184 AllowRebaseUpdate : allowRebaseUpdate ,
183185 DefaultDeleteBranchAfterMerge : defaultDeleteBranchAfterMerge ,
184186 DefaultMergeStyle : string (defaultMergeStyle ),
187+ DefaultAllowMaintainerEdit : defaultAllowMaintainerEdit ,
185188 AvatarURL : repo .AvatarLink (),
186189 Internal : ! repo .IsPrivate && repo .Owner .Visibility == api .VisibleTypePrivate ,
187190 MirrorInterval : mirrorInterval ,
0 commit comments