1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-05-18 00:49:09 -04:00
This commit is contained in:
6543 2024-10-28 23:47:37 +01:00
parent 371cc207be
commit 91ae32ca7c

View File

@ -722,6 +722,7 @@ func checkHomeCodeViewable(ctx *context.Context) {
}
}
// TODO: ctx.Repo.Repository.DefaultUnit has to be respected here ... but we need to let code unit have it's own subpath ...
var firstUnit *unit_model.Unit
for _, repoUnitType := range ctx.Repo.Permission.ReadableUnitTypes() {
if repoUnitType == unit_model.TypeCode {