Limit access to logviewer endpoints to people with access to the settings section

This commit is contained in:
Sebastiaan Janssen
2020-11-09 10:16:01 +01:00
parent d4e624e9fa
commit efd9f71897

View File

@@ -6,6 +6,7 @@ using Umbraco.Core.Models;
using Umbraco.Core.Persistence.DatabaseModelDefinitions;
using Umbraco.Web.Mvc;
using Umbraco.Web.WebApi;
using Umbraco.Web.WebApi.Filters;
namespace Umbraco.Web.Editors
{
@@ -13,6 +14,7 @@ namespace Umbraco.Web.Editors
/// Backoffice controller supporting the dashboard for viewing logs with some simple graphs & filtering
/// </summary>
[PluginController("UmbracoApi")]
//[UmbracoApplicationAuthorize(Core.Constants.Applications.Settings)]
public class LogViewerController : UmbracoAuthorizedJsonController
{
private readonly ILogViewer _logViewer;