Table of Contents

Class GetModulesQuery

Namespace
KadicAuth.Application.Modules.Queries
Assembly
KadicAuth.Application.dll

IgnoreTenantScope: when true (set by the controller only for verified Platform Admins), the handler skips the "TenantId required" guard and the repository returns the FULL module catalog regardless of TenantId — this is the "Gestión de Módulos" system-wide admin screen's use case, where the caller's own home tenant is irrelevant. Regular (non-platform-admin) callers are unaffected — they still require a real TenantId and get the tenant-scoped result (e.g. the dashboard widget module picker, which must only show the CALLER's own tenant's modules).

public sealed record GetModulesQuery : IRequest<PaginatorResponseDto<ModuleDto>>, IBaseRequest
Inheritance
object
GetModulesQuery
Implements
IRequest<PaginatorResponseDto<ModuleDto>>
IBaseRequest

Constructors

GetModulesQuery(PaginatorRequestDto, Guid, Guid?, bool)

IgnoreTenantScope: when true (set by the controller only for verified Platform Admins), the handler skips the "TenantId required" guard and the repository returns the FULL module catalog regardless of TenantId — this is the "Gestión de Módulos" system-wide admin screen's use case, where the caller's own home tenant is irrelevant. Regular (non-platform-admin) callers are unaffected — they still require a real TenantId and get the tenant-scoped result (e.g. the dashboard widget module picker, which must only show the CALLER's own tenant's modules).

public GetModulesQuery(PaginatorRequestDto PaginatorRequest, Guid TenantId, Guid? BranchId = null, bool IgnoreTenantScope = false)

Parameters

PaginatorRequest PaginatorRequestDto
TenantId Guid
BranchId Guid?
IgnoreTenantScope bool

Properties

BranchId

public Guid? BranchId { get; init; }

Property Value

Guid?

IgnoreTenantScope

public bool IgnoreTenantScope { get; init; }

Property Value

bool

PaginatorRequest

public PaginatorRequestDto PaginatorRequest { get; init; }

Property Value

PaginatorRequestDto

TenantId

public Guid TenantId { get; init; }

Property Value

Guid