mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Add IsAdminUser method to UserService
This commit is contained in:
@@ -34,6 +34,11 @@ namespace BTCPayServer.Services
|
||||
_storeRepository = storeRepository;
|
||||
}
|
||||
|
||||
public async Task<bool> IsAdminUser(ApplicationUser user)
|
||||
{
|
||||
return IsRoleAdmin(await _userManager.GetRolesAsync(user));
|
||||
}
|
||||
|
||||
public async Task DeleteUserAndAssociatedData(ApplicationUser user)
|
||||
{
|
||||
var userId = user.Id;
|
||||
|
||||
Reference in New Issue
Block a user