feat: Allow assigned admins to access admin panel via command and buttons
Some checks failed
continuous-integration/drone/pr Build is failing

- Modified check_admin_access() to check both super admins (.env) and assigned admins (DB)
- Updated /admin command handler to support both admin types
- Replaced all is_admin() checks with async check_admin_access() in admin panel
- Assigned admins can now use /admin command and navigate via buttons
- Super admin check (is_super_admin) remains unchanged for admin management
- Added proper async/await for database queries in all admin checks
This commit is contained in:
2026-02-18 13:28:29 +09:00
parent e1b4465f89
commit 6b24388faa
3 changed files with 146 additions and 107 deletions

1
.gitignore vendored
View File

@@ -60,3 +60,4 @@ venv.bak/
# Системные файлы
.DS_Store
Thumbs.db.bot.pid
*.bak