Make isAdmin async
This commit is contained in:
@@ -87,7 +87,7 @@ public class BotController : BaseController
|
||||
return false;
|
||||
|
||||
// Admin users can access all bots
|
||||
if (_adminService.IsUserAdmin(user.Name))
|
||||
if (await _adminService.IsUserAdminAsync(user.Name))
|
||||
return true;
|
||||
|
||||
if (identifier != default)
|
||||
|
||||
Reference in New Issue
Block a user