Some changes to get register/login flow working smoothly with Admin role.
This commit is contained in:
parent
259b954f26
commit
bb276a5984
6 changed files with 26 additions and 21 deletions
|
@ -62,11 +62,6 @@ namespace API.Data
|
|||
.ProjectTo<MemberDto>(_mapper.ConfigurationProvider)
|
||||
.SingleOrDefaultAsync();
|
||||
}
|
||||
|
||||
public async Task<bool> AdminExists()
|
||||
{
|
||||
return await _context.Users.AnyAsync(x => x.IsAdmin);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue