fix issue with penalty list
This commit is contained in:
parent
284c2e9726
commit
35b43e7438
@ -1,7 +1,7 @@
|
||||
@{
|
||||
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 SharedLibraryCore.Dtos
|
||||
|
Loading…
Reference in New Issue
Block a user