Checking the permission for next status in payment request not current
This commit is contained in:
parent
1e7363ea2f
commit
9ee9d30121
@ -1862,7 +1862,7 @@ namespace Marco.Pms.Services.Service
|
|||||||
{
|
{
|
||||||
await using var dbContext = await _dbContextFactory.CreateDbContextAsync();
|
await using var dbContext = await _dbContextFactory.CreateDbContextAsync();
|
||||||
return await dbContext.StatusPermissionMapping
|
return await dbContext.StatusPermissionMapping
|
||||||
.Where(spm => spm.StatusId == paymentRequest.ExpenseStatusId)
|
.Where(spm => spm.StatusId == model.StatusId)
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user