feat: modernize UI/UX to 2026 US fintech standard, add violet AI accents, and strengthen security controls
- Modern 2026 US fintech visual redesign across User & Admin Dashboards, Marketing pages, Auth screens, and Layouts - Introduced violet accent (#6D28D9 / #8B5CF6) strictly dedicated to AI capabilities (AI Daily Briefing, AI Assistant, Chatbot FAB & Chat UI) - Motion system respecting prefers-reduced-motion and (hover: none) with GPU-accelerated transforms & opacities - High-resolution dark glass monogram logo mark with upward growth motif - Backend security enhancements: strict MIME-type sniffing validation, admin assignment scoping assertions, safe document deletion handling - Nginx strict Content-Security-Policy (CSP) headers and favicon routing
This commit is contained in:
@@ -22,7 +22,7 @@ from app.models import (
|
||||
ChatMessage as DBChatMessage,
|
||||
)
|
||||
from app.db import get_db
|
||||
from app.auth.security import get_current_user, require_admin
|
||||
from app.auth.security import get_current_user, require_admin, assert_admin_can_access
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -282,6 +282,7 @@ def admin_bulk_action(
|
||||
user = db.query(User).filter(User.id == payload.user_id).first()
|
||||
if not user:
|
||||
raise HTTPException(status_code=404, detail="User not found")
|
||||
assert_admin_can_access(current_user, user)
|
||||
|
||||
action_parts = payload.action.split("_")
|
||||
if len(action_parts) != 2 or action_parts[0] not in ("approve", "reject") \
|
||||
|
||||
Reference in New Issue
Block a user