Chnaged get query
This commit is contained in:
parent
c3571f76b8
commit
33538c25b7
@ -134,7 +134,7 @@ namespace Marco.Pms.Services.Service
|
|||||||
// Apply permission-based filtering BEFORE any other filters or pagination.
|
// Apply permission-based filtering BEFORE any other filters or pagination.
|
||||||
if (hasViewAllPermissionTask.Result)
|
if (hasViewAllPermissionTask.Result)
|
||||||
{
|
{
|
||||||
expensesQuery = expensesQuery.Where(e => e.CreatedById != loggedInEmployeeId || e.StatusId != Draft);
|
expensesQuery = expensesQuery.Where(e => e.CreatedById == loggedInEmployeeId || e.StatusId != Draft);
|
||||||
}
|
}
|
||||||
else if (hasViewSelfPermissionTask.Result)
|
else if (hasViewSelfPermissionTask.Result)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user