diff --git a/Src/Dnn/ToSic.Sxc.Dnn.WebApi/Dnn/Backend/Admin/FeatureController.cs b/Src/Dnn/ToSic.Sxc.Dnn.WebApi/Dnn/Backend/Admin/FeatureController.cs index 903e0fddd..2cae1f4d3 100644 --- a/Src/Dnn/ToSic.Sxc.Dnn.WebApi/Dnn/Backend/Admin/FeatureController.cs +++ b/Src/Dnn/ToSic.Sxc.Dnn.WebApi/Dnn/Backend/Admin/FeatureController.cs @@ -1,6 +1,6 @@ using ToSic.Eav.Internal.Features; -using ToSic.Eav.SysData; using ToSic.Eav.WebApi.Admin.Features; +using ToSic.Eav.WebApi.Sys.Licenses; using RealController = ToSic.Eav.WebApi.Admin.Features.FeatureControllerReal; namespace ToSic.Sxc.Dnn.Backend.Admin; @@ -20,7 +20,7 @@ public class FeatureController() : DnnSxcControllerRoot(RealController.LogSuffix [HttpGet] [DnnModuleAuthorize(AccessLevel = SecurityAccessLevel.Edit)] - public FeatureState Details(string nameId) => Real.Details(nameId); + public FeatureStateDto Details(string nameId) => Real.Details(nameId); /// /// POST updated features JSON configuration. diff --git a/Src/Oqtane/ToSic.Sxc.Oqt.Server/WebApi/Admin/FeatureController.cs b/Src/Oqtane/ToSic.Sxc.Oqt.Server/WebApi/Admin/FeatureController.cs index ce7f6cb4e..bdfc05b7d 100644 --- a/Src/Oqtane/ToSic.Sxc.Oqt.Server/WebApi/Admin/FeatureController.cs +++ b/Src/Oqtane/ToSic.Sxc.Oqt.Server/WebApi/Admin/FeatureController.cs @@ -5,6 +5,7 @@ using ToSic.Eav.Internal.Features; using ToSic.Eav.WebApi.Admin.Features; using ToSic.Eav.WebApi.Routing; +using ToSic.Eav.WebApi.Sys.Licenses; using ToSic.Sxc.Oqt.Server.Controllers; using RealController = ToSic.Eav.WebApi.Admin.Features.FeatureControllerReal; @@ -22,6 +23,9 @@ public class FeatureController() : OqtStatefulControllerBase(RealController.LogS { private RealController Real => GetService(); + [HttpGet] + [Authorize(Roles = RoleNames.Admin)] + public FeatureStateDto Details(string nameId) => Real.Details(nameId); /// /// POST updated features JSON configuration.