Allow moderators to access individual reports.

This commit is contained in:
Slendy 2023-05-26 02:27:11 -05:00
commit 2c69644beb
No known key found for this signature in database
GPG key ID: 7288D68361B91428

View file

@ -20,7 +20,7 @@ public class ReportPage : BaseLayout
{
UserEntity? user = this.Database.UserFromWebRequest(this.Request);
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
.Include(r => r.ReportingPlayer)