oh je
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user