1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-11 23:58:08 -05:00

fix issue with penalty list

This commit is contained in:
RaidMax
2022-04-22 08:04:01 -05:00
parent 178cf6e92a
commit 1cb309d2e6

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