Fill Order Numbers everywhere where installations are given back

This commit is contained in:
Kim 2023-03-30 09:28:44 +02:00
parent e1305126ee
commit b290ded0a9
1 changed files with 4 additions and 4 deletions

View File

@ -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))]