~jan0sch/smederee
Showing details for patch d163ec70ec3fe12884f1bc06b4accda873fedf48.
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala new-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala --- old-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala 2025-01-11 11:39:23.013823471 +0000 +++ new-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala 2025-01-11 11:39:23.013823471 +0000 @@ -321,7 +321,10 @@ ) ) possibleOrgaAdmins <- organisation.map(_.oid).traverse(id => orgRepo.getAdministrators(id).compile.toList) - organisationAdmins = user.map(u => List(u)).getOrElse(Nil) ::: possibleOrgaAdmins.getOrElse(Nil) + organisationOwner <- organisation.map(_.oid).traverse(orgRepo.findOwner) + organisationAdmins = organisationOwner.flatten + .map(account => List(account)) + .getOrElse(Nil) ::: possibleOrgaAdmins.getOrElse(Nil) resp <- (owner, organisation) match { case (Some(owner), organisation) => loadRepos(owner).compile.toList.flatMap { repos =>