Aggiunta modifiche x filtro utente SuperUser

This commit is contained in:
Samuele Locatelli
2024-07-05 17:29:20 +02:00
parent fa73d39171
commit 79e9f9ddad
7 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -50,7 +50,7 @@
</th>
<th>Valore Originale (file) <Sorter ParamName="ValOrig" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter></th>
<th>Valore Alias (magazzino) <Sorter ParamName="ValOrig" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter></th>
<AuthorizeView Roles="SuperAdmin, Admin">
<AuthorizeView Roles="SuperAdmin, Admin, SuperUser">
<Authorized>
<th></th>
</Authorized>
+1 -1
View File
@@ -132,7 +132,7 @@
@($"{item.LMm:N0}")
}
</td>
<AuthorizeView Roles="SuperAdmin, Admin">
<AuthorizeView Roles="SuperAdmin, Admin, SuperUser">
<Authorized>
<td class="text-end">
@if (item.QtyAvail <= 0 && item.IsActive)
+2 -2
View File
@@ -62,7 +62,7 @@
<th class="text-end"><Sorter ParamName="SizeNum" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter> Var.</th>
<th class="text-end"><Sorter ParamName="QtyTot" IsAsc="@sortAsc" CurrParam="@sortField" sortReq="SortRequested"></Sorter> Qty</th>
}
<AuthorizeView Roles="SuperAdmin, Admin">
<AuthorizeView Roles="SuperAdmin, Admin, SuperUser">
<Authorized>
<th></th>
</Authorized>
@@ -145,7 +145,7 @@
@($"{item.QtyTot:N1} {item.UM}")
</td>
}
<AuthorizeView Roles="SuperAdmin, Admin">
<AuthorizeView Roles="SuperAdmin, Admin, SuperUser">
<Authorized>
<td class="text-end">
@if (item.QtyTot == 0)
+1 -1
View File
@@ -249,7 +249,7 @@ namespace MagMan.UI.Components
/// <summary>
/// Elenco ROLES da mostrare in dropdown durante editing (1 solo? usare DB?!?)
/// </summary>
private List<string> RolesList = new List<string>() { "Undef", "User", "Admin", "SuperAdmin" };
private List<string> RolesList = new List<string>() { "Undef", "User", "SuperUser", "Admin", "SuperAdmin" };
// To enable showing the Popup
private bool ShowPopup = false;
+1 -1
View File
@@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Version>1.0.2407.0516</Version>
<Version>1.0.2407.0517</Version>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
+2 -2
View File
@@ -36,7 +36,7 @@
</div>
</div>
<div class="row px-3">
<AuthorizeView Roles="SuperAdmin, Admin">
<AuthorizeView Roles="SuperAdmin, Admin, SuperUser">
<Authorized>
<div class="col-6 col-md-4 col-lg-3 mb-3">
<NavLink type="button" class="btn btn-primary bg-gradient text-light p-3 w-100" title="Scheda Fornitore" href="AdminArea">
@@ -46,7 +46,7 @@
</div>
</Authorized>
</AuthorizeView>
<AuthorizeView Roles="SuperAdmin, Admin, User">
<AuthorizeView Roles="SuperAdmin, Admin, SuperUser, User">
<Authorized>
<div class="col-6 col-md-4 col-lg-3 mb-3">
<NavLink type="button" class="btn btn-primary bg-gradient text-light p-3 w-100" title="Stato Impianti" href="MachineStatus">
+1 -1
View File
@@ -37,7 +37,7 @@
</div>
</Authorized>
</AuthorizeView>
<AuthorizeView Roles="SuperAdmin, Admin, User">
<AuthorizeView Roles="SuperAdmin, Admin, SuperUser, User">
<Authorized>
<div class="nav-item px-2">
<NavLink class="nav-link py-0 px-2 mb-0" href="MachineStatus">