fix issue with penalty list

This commit is contained in:
RaidMax 2022-04-22 08:04:01 -05:00
parent 284c2e9726
commit 35b43e7438

View File

@ -1,7 +1,7 @@
@{ @{
Layout = null; Layout = null;
bool CanSeeLevel(PenaltyInfo penalty) => (ViewBag.PermissionsSet as IEnumerable<string>).HasPermission(WebfrontEntity.ClientLevel, WebfrontPermission.Read) && penalty.PenaltyType == EFPenalty.PenaltyType.Report; bool CanSeeLevel(PenaltyInfo penalty) => (ViewBag.PermissionsSet as IEnumerable<string>).HasPermission(WebfrontEntity.ClientLevel, WebfrontPermission.Read) || penalty.PenaltyType == EFPenalty.PenaltyType.Report;
} }
@using WebfrontCore.Permissions @using WebfrontCore.Permissions
@using SharedLibraryCore.Dtos @using SharedLibraryCore.Dtos