no message
This commit is contained in:
parent
6713ec6cf0
commit
ae67d4381d
8 changed files with 70 additions and 135 deletions
|
|
@ -57,9 +57,6 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
private string? FullName => _httpContextAccessor?.HttpContext?.User?.FindFirst("name")?.Value;
|
||||
private string? token => _httpContextAccessor.HttpContext.Request.Headers["Authorization"];
|
||||
|
||||
//private bool? PlacementAdmin => _httpContextAccessor?.HttpContext?.User?.IsInRole("placement");
|
||||
private bool? PlacementAdmin => _httpContextAccessor?.HttpContext?.User?.Claims?.Any(claim => new[] { "placement", "placement1", "placement2" }.Contains(claim.Value));
|
||||
|
||||
#endregion
|
||||
|
||||
[HttpGet]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue