mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-31 09:18:38 +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);
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue