Really fixed #2119 this time !wip

This commit is contained in:
Jamie Rees 2018-04-27 22:00:12 +01:00
parent 0bbeeaeb3e
commit 3532c20ea6

View file

@ -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;