upd dyn report for 13

This commit is contained in:
Kukks
2024-03-25 10:38:26 +01:00
parent 8e8ae0b24b
commit 28a87c6338
6 changed files with 2 additions and 179 deletions

View File

@@ -34,14 +34,6 @@ public class DynamicReportsController : Controller
_scopeProvider = scopeProvider;
}
[HttpGet("toggle-legacy")]
public async Task<IActionResult> ToggleLegacy()
{
var result = await _dynamicReportService.ToggleLegacy();
TempData[WellKnownTempData.SuccessMessage] = $"Legacy report {(result? "enabled" : "disabled")}";
return RedirectToAction(nameof(Update));
}
[HttpGet("update")]
[Authorize(Policy = Policies.CanModifyServerSettings, AuthenticationSchemes = AuthenticationSchemes.Cookie)]
public IActionResult Update(