edit permission
This commit is contained in:
parent
1e5676e8ab
commit
065fafc3d7
15 changed files with 27 additions and 27 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue