edit permission

This commit is contained in:
kittapath 2025-06-20 10:29:45 +07:00
parent 1e5676e8ab
commit 065fafc3d7
15 changed files with 27 additions and 27 deletions

View file

@ -1594,7 +1594,7 @@ namespace BMA.EHR.Leave.Service.Controllers
//var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminWithAuthAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate, keycloakList);
//var rawData = await _leaveRequestRepository.GetLeaveRequestForAdminAsync(req.Year, req.Type, req.Status, req.StartDate, req.EndDate);
string role = jsonData["result"];
string role = jsonData["result"]?.ToString();
var nodeId = string.Empty;
var profileAdmin = new GetUserOCAllDto();
profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken);
@ -1741,7 +1741,7 @@ namespace BMA.EHR.Leave.Service.Controllers
.OrderBy(x => x.Seq)
.ToList();
foreach(var approver in approvers)
foreach (var approver in approvers)
{
// Send Notification
var noti1 = new Notification
@ -1753,7 +1753,7 @@ namespace BMA.EHR.Leave.Service.Controllers
};
_appDbContext.Set<Notification>().Add(noti1);
}
return Success();
}
@ -1780,7 +1780,7 @@ namespace BMA.EHR.Leave.Service.Controllers
return Error(jsonData["message"]?.ToString(), StatusCodes.Status403Forbidden);
}
string role = jsonData["result"];
string role = jsonData["result"]?.ToString();
var nodeId = string.Empty;
var profileAdmin = new GetUserOCAllDto();
profileAdmin = await _userProfileRepository.GetUserOCAll(Guid.Parse(UserId!), AccessToken);