Really fixed #2119 this time !wip

pull/2209/head
Jamie Rees 6 years ago
parent 0bbeeaeb3e
commit 3532c20ea6

@ -110,7 +110,7 @@ namespace Ombi.Controllers
public async Task<bool> CreateWizardUser([FromBody] CreateUserWizardModel user)
{
var users = UserManager.Users;
if (users.Any())
if (users.Any(x => !x.UserName.Equals("api", StringComparison.CurrentCultureIgnoreCase)))
{
// No one should be calling this. Only the wizard
return false;

Loading…
Cancel
Save