mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-04-19 19:14:51 +00:00
26 lines
No EOL
660 B
C#
26 lines
No EOL
660 B
C#
#nullable enable
|
|
|
|
using LBPUnion.ProjectLighthouse.Servers.Website.Pages.Layouts;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
#if !DEBUG
|
|
using LBPUnion.ProjectLighthouse.PlayerData.Profiles;
|
|
using LBPUnion.ProjectLighthouse.Types;
|
|
#endif
|
|
|
|
namespace LBPUnion.ProjectLighthouse.Servers.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();
|
|
}
|
|
} |