From b290ded0a94a3a89e2bcec9eee5269447f651dc4 Mon Sep 17 00:00:00 2001 From: Kim Date: Thu, 30 Mar 2023 09:28:44 +0200 Subject: [PATCH] Fill Order Numbers everywhere where installations are given back --- csharp/App/Backend/Controllers/Controller.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/csharp/App/Backend/Controllers/Controller.cs b/csharp/App/Backend/Controllers/Controller.cs index f4dd895d3..269a5e736 100644 --- a/csharp/App/Backend/Controllers/Controller.cs +++ b/csharp/App/Backend/Controllers/Controller.cs @@ -76,7 +76,7 @@ public class Controller : ControllerBase if (installation is null || !user.HasAccessTo(installation)) return Unauthorized(); - return installation.HideParentIfUserHasNoAccessToParent(user); + return installation.FillOrderNumbers().HideParentIfUserHasNoAccessToParent(user); } [HttpGet(nameof(GetUsersWithDirectAccessToInstallation))] @@ -253,7 +253,7 @@ public class Controller : ControllerBase if (! await session.Create(installation)) return Unauthorized(); - return installation.HideParentIfUserHasNoAccessToParent(session!.User); + return installation.FillOrderNumbers().HideParentIfUserHasNoAccessToParent(session!.User); } [HttpPost(nameof(CreateFolder))] @@ -359,7 +359,7 @@ public class Controller : ControllerBase if (!session.Update(installation)) return Unauthorized(); - return installation.HideParentIfUserHasNoAccessToParent(session.User); + return installation.FillOrderNumbers().HideParentIfUserHasNoAccessToParent(session!.User); } @@ -371,7 +371,7 @@ public class Controller : ControllerBase if (!session.Update(folder)) return Unauthorized(); - return folder.HideParentIfUserHasNoAccessToParent(session.User); + return folder.HideParentIfUserHasNoAccessToParent(session!.User); } [HttpPut(nameof(MoveInstallation))]