no message

This commit is contained in:
kittapath 2024-11-05 11:20:55 +07:00
parent 6713ec6cf0
commit ae67d4381d
8 changed files with 70 additions and 135 deletions

View file

@ -46,9 +46,6 @@ namespace BMA.EHR.Placement.Service.Controllers
private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value;
//private bool? PlacementAdmin => _httpContextAccessor?.HttpContext?.User?.IsInRole("placement1");
private bool? PlacementAdmin => _httpContextAccessor?.HttpContext?.User?.Claims?.Any(claim => new[] { "placement", "placement1", "placement2" }.Contains(claim.Value));
#endregion
/// <summary>
@ -103,8 +100,6 @@ namespace BMA.EHR.Placement.Service.Controllers
p.CreatedAt,
})
.ToListAsync();
if (PlacementAdmin == true)
placementRelocations.Where(x => x.Status.Trim().ToUpper().Contains("PENDING"));
return Success(placementRelocations);
}