fixes user's auto-deletion :-)

This commit is contained in:
2019-07-21 02:54:16 +02:00
parent c01fae9c3a
commit 7143c1feeb
3 changed files with 6 additions and 1 deletions

View File

@ -687,7 +687,7 @@ namespace Yavsc.Controllers
[HttpGet, Authorize]
public IActionResult Delete()
{
return View();
return View(new UnregisterViewModel { UserId = User.GetUserId() });
}
[HttpGet, Authorize("AdministratorOnly")]