diff --git a/Marco.Pms.Services/Helpers/GeneralHelper.cs b/Marco.Pms.Services/Helpers/GeneralHelper.cs index 45cdb13..289c87e 100644 --- a/Marco.Pms.Services/Helpers/GeneralHelper.cs +++ b/Marco.Pms.Services/Helpers/GeneralHelper.cs @@ -13,6 +13,7 @@ namespace Marco.Pms.Services.Helpers private readonly ApplicationDbContext _context; // Keeping this for direct scoped context use where appropriate private readonly ILoggingService _logger; private readonly FeatureDetailsHelper _featureDetailsHelper; + private static readonly Guid SuperTenantId = Guid.Parse("b3466e83-7e11-464c-b93a-daf047838b26"); public GeneralHelper(IDbContextFactory dbContextFactory, ApplicationDbContext context, ILoggingService logger, @@ -307,6 +308,10 @@ namespace Marco.Pms.Services.Helpers try { + if (tenantId == SuperTenantId) + { + return true; + } // Run both queries concurrently var totalSeatsTask = GetMaxSeatsAsync(tenantId); var totalSeatsTakenTask = GetActiveEmployeesCountAsync(tenantId);