mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-05-17 07:12:32 +00:00
Add case for planet deletion
This commit is contained in:
parent
f1b44af420
commit
8ecca5d358
3 changed files with 15 additions and 5 deletions
|
@ -10,7 +10,7 @@ using IOFile = System.IO.File;
|
|||
namespace LBPUnion.ProjectLighthouse.Servers.Website.Controllers.Admin;
|
||||
|
||||
[ApiController]
|
||||
[Route("admin/user/{id:int}")]
|
||||
[Route("moderation/user/{id:int}")]
|
||||
public class AdminUserController : ControllerBase
|
||||
{
|
||||
private readonly Database database;
|
||||
|
@ -97,6 +97,7 @@ public class AdminUserController : ControllerBase
|
|||
}
|
||||
}
|
||||
|
||||
this.database.Cases.Add(ModerationCase.NewPlanetDeletionCase(user.UserId, targetedUser.UserId));
|
||||
await this.database.SaveChangesAsync();
|
||||
|
||||
return this.Redirect($"/user/{targetedUser.UserId}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue