mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-15 14:12:27 +00:00
Move servers to LBPU.PL.Servers
This commit is contained in:
parent
545b5a0709
commit
b2ec7eae57
116 changed files with 173 additions and 162 deletions
|
@ -1,25 +0,0 @@
|
|||
#nullable enable
|
||||
|
||||
using LBPUnion.ProjectLighthouse.Website.Pages.Layouts;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
#if !DEBUG
|
||||
using LBPUnion.ProjectLighthouse.Types;
|
||||
#endif
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Website.Pages.Debug;
|
||||
|
||||
public class RoomVisualizerPage : BaseLayout
|
||||
{
|
||||
public RoomVisualizerPage(Database database) : base(database)
|
||||
{}
|
||||
|
||||
public IActionResult OnGet()
|
||||
{
|
||||
#if !DEBUG
|
||||
User? user = this.Database.UserFromWebRequest(this.Request);
|
||||
if (user == null || !user.IsAdmin) return this.NotFound();
|
||||
#endif
|
||||
|
||||
return this.Page();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue