mirror of
https://github.com/christianvidalwolf-prog/Craze-Data-check.git
synced 2026-08-03 14:45:24 +02:00
security: restrict AI settings to authorized admin email
This commit is contained in:
@@ -192,6 +192,7 @@ export function TopBar({ stats, activeModule, onExport, onRefresh, hasData, hasU
|
|||||||
MAXIMIZE
|
MAXIMIZE
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
{userEmail === 'christian.vidal@craze-group.com' && (
|
||||||
<button
|
<button
|
||||||
onClick={() => setShowSettings(true)}
|
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"
|
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"
|
||||||
@@ -200,6 +201,7 @@ export function TopBar({ stats, activeModule, onExport, onRefresh, hasData, hasU
|
|||||||
<Settings className="w-4 h-4" />
|
<Settings className="w-4 h-4" />
|
||||||
AI SETTINGS
|
AI SETTINGS
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={onUndo}
|
onClick={onUndo}
|
||||||
|
|||||||
Reference in New Issue
Block a user