mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-01 09:48:37 +00:00
Allow moderators to access individual reports.
This commit is contained in:
parent
f2be297620
commit
2c69644beb
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ public class ReportPage : BaseLayout
|
||||||
{
|
{
|
||||||
UserEntity? user = this.Database.UserFromWebRequest(this.Request);
|
UserEntity? user = this.Database.UserFromWebRequest(this.Request);
|
||||||
if (user == null) return this.Redirect("~/login");
|
if (user == null) return this.Redirect("~/login");
|
||||||
if (!user.IsAdmin) return this.NotFound();
|
if (!user.IsModerator) return this.NotFound();
|
||||||
|
|
||||||
GriefReportEntity? report = await this.Database.Reports
|
GriefReportEntity? report = await this.Database.Reports
|
||||||
.Include(r => r.ReportingPlayer)
|
.Include(r => r.ReportingPlayer)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue