Skip to content

Commit

Permalink
Fix AddUser
Browse files Browse the repository at this point in the history
  • Loading branch information
Romans96 committed Oct 22, 2022
1 parent 260337c commit d0566d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NationalLibrary/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ public IActionResult router()
return RedirectToAction("dashboard", userFinal);
}
#region AddSomePerson
[HttpPost]

public IActionResult addUser()
{
Console.WriteLine("test");
if (userFinal == null || userFinal.Type.ToLower() == "user")
return RedirectToAction("Error");
return View();
Expand Down

0 comments on commit d0566d2

Please sign in to comment.