Hided the tenant management feature permissions from tenant other than super tenant

This commit is contained in:
ashutosh.nehete 2025-10-08 11:03:29 +05:30
parent 8a4a056c2d
commit 16e509ccbd

View File

@ -261,8 +261,8 @@ namespace Marco.Pms.Services.Helpers
new Guid("a8cf4331-8f04-4961-8360-a3f7c3cc7462"), // Document Management feature new Guid("a8cf4331-8f04-4961-8360-a3f7c3cc7462"), // Document Management feature
new Guid("be3b3afc-6ccf-4566-b9b6-aafcb65546be"), // Masters Management feature new Guid("be3b3afc-6ccf-4566-b9b6-aafcb65546be"), // Masters Management feature
new Guid("39e66f81-efc6-446c-95bd-46bff6cfb606"), // Directory Management feature new Guid("39e66f81-efc6-446c-95bd-46bff6cfb606"), // Directory Management feature
new Guid("6d4c82d6-dbce-48ab-b8b8-f785f4d8c914"), // Organization Management feature new Guid("6d4c82d6-dbce-48ab-b8b8-f785f4d8c914") // Organization Management feature
new Guid("2f3509b7-160d-410a-b9b6-daadd96c986d") // Tenant Management feature //new Guid("2f3509b7-160d-410a-b9b6-daadd96c986d") // Tenant Management feature
}; };
if (tenantSubscription == null) if (tenantSubscription == null)
@ -274,7 +274,7 @@ namespace Marco.Pms.Services.Helpers
_logger.LogDebug("Active subscription found for tenant: {TenantId}, PlanId: {PlanId}", _logger.LogDebug("Active subscription found for tenant: {TenantId}, PlanId: {PlanId}",
tenantId, tenantSubscription.Plan!.Id); tenantId, tenantSubscription.Plan!.Id);
//var featureIds = new List<Guid> { new Guid("2f3509b7-160d-410a-b9b6-daadd96c986d"), new Guid("be3b3afc-6ccf-4566-b9b6-aafcb65546be") }; //var featureIds = new List<Guid> { new Guid("be3b3afc-6ccf-4566-b9b6-aafcb65546be") };
// Step 2: Get feature details from Plan // Step 2: Get feature details from Plan