feat: Allow assigned admins to access admin panel via command and buttons #6

Merged
trevor merged 1 commits from v2_functions into master 2026-02-18 04:29:01 +00:00
Owner
  • 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
- 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
trevor added 1 commit 2026-02-18 04:28:58 +00:00
feat: Allow assigned admins to access admin panel via command and buttons
Some checks failed
continuous-integration/drone/pr Build is failing
6b24388faa
- 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
trevor merged commit 815cc544d5 into master 2026-02-18 04:29:01 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: trevor/new_lottery_bot#6
No description provided.