mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 12:45:24 +02:00
security: restrict AI settings to authorized admin email
This commit is contained in:
@@ -192,14 +192,16 @@ export function TopBar({ stats, activeModule, onExport, onRefresh, hasData, hasU
|
||||
MAXIMIZE
|
||||
</button>
|
||||
|
||||
<button
|
||||
onClick={() => setShowSettings(true)}
|
||||
className="flex items-center gap-2 px-4 py-2 rounded-md text-sm font-medium bg-slate-700 hover:bg-slate-600 text-slate-200 transition-colors"
|
||||
title="AI Settings - Configure API keys"
|
||||
>
|
||||
<Settings className="w-4 h-4" />
|
||||
AI SETTINGS
|
||||
</button>
|
||||
{userEmail === 'christian.vidal@craze-group.com' && (
|
||||
<button
|
||||
onClick={() => setShowSettings(true)}
|
||||
className="flex items-center gap-2 px-4 py-2 rounded-md text-sm font-medium bg-slate-700 hover:bg-slate-600 text-slate-200 transition-colors"
|
||||
title="AI Settings - Configure API keys"
|
||||
>
|
||||
<Settings className="w-4 h-4" />
|
||||
AI SETTINGS
|
||||
</button>
|
||||
)}
|
||||
|
||||
<button
|
||||
onClick={onUndo}
|
||||
|
||||
Reference in New Issue
Block a user