mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-23 13:41:31 +00:00
Patch account suspended page display issues (#777)
Remove excess heading and fix incorrect mod case display
This commit is contained in:
parent
5c9819cce6
commit
b4efba7f14
2 changed files with 3 additions and 3 deletions
|
@ -12,8 +12,6 @@
|
|||
}
|
||||
|
||||
<div class="ui middle aligned left aligned">
|
||||
<h1>@Model.Translate(ModerationStrings.SuspensionHeading)</h1>
|
||||
|
||||
<p>
|
||||
@Model.Translate(ModerationStrings.SuspensionExplanation, ServerConfiguration.Instance.Customization.ServerName)
|
||||
</p>
|
||||
|
|
|
@ -25,7 +25,9 @@ public class BannedUserPage : BaseLayout
|
|||
if (!user.IsBanned) return this.Redirect("~/");
|
||||
|
||||
ModerationCaseEntity? modCase = await this.Database.Cases
|
||||
.FirstOrDefaultAsync(c => c.AffectedId == user.UserId && c.Type == CaseType.UserBan);
|
||||
.LastOrDefaultAsync(c => c.AffectedId == user.UserId
|
||||
&& c.Type == CaseType.UserBan
|
||||
&& !c.Dismissed);
|
||||
|
||||
if (modCase == null) return this.Redirect("~/");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue