Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Application/Users/Queries/GetAllUsersPaginated.cs
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@
using AutoMapper;
using Domain.Entities;
using MediatR;
using Microsoft.EntityFrameworkCore;

namespace Application.Users.Queries;

Expand DownExpand Up@@ -35,6 +36,7 @@ public QueryHandler(IApplicationDbContext context, IMapper mapper)
public async Task<PaginatedList<UserDto>> Handle(Query request, CancellationToken cancellationToken)
{
var users = _context.Users
.Include(x => x.Department)
.Where(x => !x.Role.Equals(IdentityData.Roles.Admin));

// Filter by department
Expand Down