fixes user's auto-deletion :-)

This commit is contained in:
Paul Schneider 2019-07-21 02:54:16 +02:00
commit 105f8c70c9
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")]