Corrected the check to add self organization

This commit is contained in:
ashutosh.nehete 2025-09-30 10:18:15 +05:30
parent 90851a3349
commit 64bde99ab5

View File

@ -127,7 +127,7 @@ namespace Marco.Pms.Services.Controllers
.Take(pageSize)
.ToListAsync();
if (organizations.Any())
if (!organizations.Any())
{
organizations = await _context.Tenants.AsNoTracking()
.Include(t => t.Organization)