Permissions for search controller

This commit is contained in:
Stoyan Zlatev
2023-05-11 15:20:12 +02:00
parent 5ff1d2d53a
commit d137d9efe0
3 changed files with 53 additions and 25 deletions
@@ -31,9 +31,10 @@
if (this.PalletNr == 0)
{
this.PalletNr = this.Pallets.Keys.Last();
this.PalletNr = Math.Max(this.Pallets.Keys.LastOrDefault(), 1);
}
else if (!this.Pallets.ContainsKey(this.PalletNr))
if (!this.Pallets.ContainsKey(this.PalletNr))
{
this.Pallets[this.PalletNr] = true;
}