mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-18 23:42:28 +00:00
Add moderation cases log page
This commit is contained in:
parent
b51561e943
commit
6c6a7f01f9
14 changed files with 181 additions and 10 deletions
|
@ -28,4 +28,36 @@ public enum CaseType
|
|||
HashModeration = 14,
|
||||
|
||||
IpAddressBan = 15,
|
||||
}
|
||||
|
||||
public static class CaseTypeExtensions
|
||||
{
|
||||
public static bool AffectsUser(this CaseType type)
|
||||
{
|
||||
return type switch
|
||||
{
|
||||
CaseType.UserSilence => true,
|
||||
CaseType.UserRestriction => true,
|
||||
CaseType.UserBan => true,
|
||||
CaseType.UserDeletion => true,
|
||||
CaseType.UserCommentsDisabled => true,
|
||||
CaseType.UserDetailsEdited => true,
|
||||
CaseType.UserEarthDeletion => true,
|
||||
_ => false,
|
||||
};
|
||||
}
|
||||
|
||||
public static bool AffectsLevel(this CaseType type)
|
||||
{
|
||||
return type switch
|
||||
{
|
||||
CaseType.LevelDeletion => true,
|
||||
CaseType.LevelLock => true,
|
||||
CaseType.LevelCommentsDisabled => true,
|
||||
CaseType.LevelDetailsEdited => true,
|
||||
CaseType.LevelTeamPickAdded => true,
|
||||
CaseType.LevelTeamPickRemoved => true,
|
||||
_ => false,
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue