Make isAdmin async

This commit is contained in:
2025-11-08 02:08:19 +07:00
parent be784a026a
commit ca705d5b76
5 changed files with 10 additions and 10 deletions

View File

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