Skip to content

Commit

Permalink
minor correct feature state serialization / oqtane variant
Browse files Browse the repository at this point in the history
  • Loading branch information
iJungleboy committed Jun 26, 2024
1 parent 0d0f794 commit f901cb6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -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);

/// <summary>
/// POST updated features JSON configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -22,6 +23,9 @@ public class FeatureController() : OqtStatefulControllerBase(RealController.LogS
{
private RealController Real => GetService<RealController>();

[HttpGet]
[Authorize(Roles = RoleNames.Admin)]
public FeatureStateDto Details(string nameId) => Real.Details(nameId);

/// <summary>
/// POST updated features JSON configuration.
Expand Down

0 comments on commit f901cb6

Please sign in to comment.