This commit is contained in:
2025-06-12 15:12:30 +02:00
parent 5be4079ee0
commit b45562cf2f
24 changed files with 666 additions and 190 deletions

View File

@@ -1,7 +1,10 @@
using System.Web.Mvc;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using BeWoPlanerMobil.Models;
using BeWoPlanerMobil.Service;
using BeWoPlanerMobil.Util;
using BS.Shared.Core;
namespace BeWoPlanerMobil.Controllers
{
@@ -35,14 +38,34 @@ namespace BeWoPlanerMobil.Controllers
[Authorize]
public ActionResult DebuggingTools()
{
if(!MobileSessionFacade.IsUserLoggedIn() || Model == null)
if(!MobileSessionFacade.IsUserLoggedIn() || Model is null)
{
return RedirectToActionPermanent("Index", "Login");
}
Model.MandatorSettings = new MandatorSettings(MobileSessionFacade.Mandator.Settings);
return View(Model);
}
[Authorize]
public ActionResult LoadSettingsPartial()
{
return PartialView("DevToolsSettingsPartial", Model);
}
[Authorize]
public ActionResult LoadUserRightPartial()
{
return PartialView("DevToolsUserRightsPartial", Model);
}
[Authorize]
public ActionResult LoadDataGenerationPartial()
{
return PartialView("DevToolsDataGenerationPartial", Model);
}
[Authorize]
public override string SaveCollapsibleStatus(bool isOpen, string identifier)
{