From 791c17594e082435adac86f0afcec9ccc10bb7d3 Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Mon, 13 May 2024 10:56:09 +0300 Subject: [PATCH] Revert "Allow overriding features from Edition" --- .../Pages/FeatureManagement/FeatureManagementModal.cshtml | 3 +++ .../Pages/FeatureManagement/FeatureManagementModal.cshtml.cs | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/FeatureManagementModal.cshtml b/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/FeatureManagementModal.cshtml index 012f7618134..a3a00a89c1c 100644 --- a/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/FeatureManagementModal.cshtml +++ b/modules/feature-management/src/Volo.Abp.FeatureManagement.Web/Pages/FeatureManagement/FeatureManagementModal.cshtml @@ -43,6 +43,7 @@ @for (var j = 0; j < featureGroup.Features.Count; j++) { var feature = featureGroup.Features[j]; + var disabled = Model.IsDisabled(feature.Provider.Name);
@@ -53,6 +54,7 @@ type="checkbox" abp-id-name="@Model.FeatureGroups[i].Features[j].BoolValue" label="@feature.DisplayName" + disabled="@disabled" group-data-feature-name="@feature.Name" group-data-parent-name="@(feature.ParentName ?? "")" group-style="margin-inline-start: @(feature.Depth * 20)px"/> @@ -74,6 +76,7 @@ Features { get; set; }