@model Project_Unite.Models.ModeratorBanListViewModel @{ ViewBag.Moderator = true; ViewBag.Title = "Bans"; }

Bans

User bans

Below is a list of all user bans. User bans prevent users from logging into their accounts.

@foreach(var u in Model.UserBans.OrderByDescending(x=>x.BannedAt)) { }
User Banner Timestamp Actions
@Html.UserLink(u.Id) @Html.UserLink(u.BannedBy) @u.BannedAt @if (ACL.CanManageRole(User.Identity.Name, u.HighestRole.Id)) { @Html.ActionLink("Unban", "Unban", "Moderator", new { id = u.Id }, new { @class = "btn btn-default" }) }

IP address bans

Below is a list of IP address bans on the site. IP bans prevent users with a certain IP address from even attempting to access the website and multi-user domain by sending back "Forbidden" responses and denying connection.

BE EXTREMELY CAUTIOUS.

The system does NOT associate IP addresses with usernames - it can't. If you are unsure who's IP address you are unbanning, contact someone who is sure before taking any action. We have no idea what that computer or network is capable of.

@foreach (var u in Model.IPBans) { }
User Banner Timestamp Actions
@u.Address @if (User.Identity.IsAdmin()) { @Html.ActionLink("Unban", "UnbanIP", "Moderator", new { id = u.Id }, new { @class = "btn btn-danger" }) }