Skip to content

Commit

Permalink
Merge pull request #126 from vdurante/patch-1
Browse files Browse the repository at this point in the history
Add `.IgnoreQueryFilters()` to Host's admin user creation
  • Loading branch information
hikalkan authored Oct 8, 2017
2 parents dd24d17 + a50bbc5 commit 74ef645
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private void CreateHostRoleAndUsers()

//admin user for host

var adminUserForHost = _context.Users.FirstOrDefault(u => u.TenantId == null && u.UserName == AbpUserBase.AdminUserName);
var adminUserForHost = _context.Users.IgnoreQueryFilters().FirstOrDefault(u => u.TenantId == null && u.UserName == AbpUserBase.AdminUserName);
if (adminUserForHost == null)
{
var user = new User
Expand Down Expand Up @@ -94,4 +94,4 @@ private void CreateHostRoleAndUsers()
}
}
}
}
}

0 comments on commit 74ef645

Please sign in to comment.