Fill Order Numbers everywhere where installations are given back
This commit is contained in:
parent
e1305126ee
commit
b290ded0a9
|
@ -76,7 +76,7 @@ public class Controller : ControllerBase
|
||||||
if (installation is null || !user.HasAccessTo(installation))
|
if (installation is null || !user.HasAccessTo(installation))
|
||||||
return Unauthorized();
|
return Unauthorized();
|
||||||
|
|
||||||
return installation.HideParentIfUserHasNoAccessToParent(user);
|
return installation.FillOrderNumbers().HideParentIfUserHasNoAccessToParent(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpGet(nameof(GetUsersWithDirectAccessToInstallation))]
|
[HttpGet(nameof(GetUsersWithDirectAccessToInstallation))]
|
||||||
|
@ -253,7 +253,7 @@ public class Controller : ControllerBase
|
||||||
if (! await session.Create(installation))
|
if (! await session.Create(installation))
|
||||||
return Unauthorized();
|
return Unauthorized();
|
||||||
|
|
||||||
return installation.HideParentIfUserHasNoAccessToParent(session!.User);
|
return installation.FillOrderNumbers().HideParentIfUserHasNoAccessToParent(session!.User);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPost(nameof(CreateFolder))]
|
[HttpPost(nameof(CreateFolder))]
|
||||||
|
@ -359,7 +359,7 @@ public class Controller : ControllerBase
|
||||||
if (!session.Update(installation))
|
if (!session.Update(installation))
|
||||||
return Unauthorized();
|
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))
|
if (!session.Update(folder))
|
||||||
return Unauthorized();
|
return Unauthorized();
|
||||||
|
|
||||||
return folder.HideParentIfUserHasNoAccessToParent(session.User);
|
return folder.HideParentIfUserHasNoAccessToParent(session!.User);
|
||||||
}
|
}
|
||||||
|
|
||||||
[HttpPut(nameof(MoveInstallation))]
|
[HttpPut(nameof(MoveInstallation))]
|
||||||
|
|
Loading…
Reference in New Issue