แก้ list รายการเกษียณ

This commit is contained in:
kittapath 2024-11-05 14:16:13 +07:00
parent ae67d4381d
commit b98b02ac98
5 changed files with 9 additions and 18 deletions

View file

@ -46,8 +46,6 @@ namespace BMA.EHR.Retirement.Service.Controllers
private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value;
private bool? RetirementAdmin => _httpContextAccessor?.HttpContext?.User?.IsInRole("placement1");
#endregion
/// <summary>
@ -86,8 +84,6 @@ namespace BMA.EHR.Retirement.Service.Controllers
p.IsActive,
})
.ToListAsync();
if (RetirementAdmin == true)
retirementExpulsions.Where(x => x.Status.Trim().ToUpper().Contains("APPROVE"));
return Success(retirementExpulsions);
}