Chnaged get query

This commit is contained in:
ashutosh.nehete 2025-08-04 14:51:05 +05:30
parent c3571f76b8
commit 33538c25b7

View File

@ -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)
{ {