diff --git a/app/web/src/App.svelte b/app/web/src/App.svelte index c40da13..17a00a9 100644 --- a/app/web/src/App.svelte +++ b/app/web/src/App.svelte @@ -231,14 +231,14 @@ // Export functionality async function exportAllEvents() { - if (!isLoggedIn || userRole !== 'owner') { - alert('Owner permission required'); + if (!isLoggedIn || (userRole !== 'admin' && userRole !== 'owner')) { + alert('Admin or owner permission required'); return; } try { - const authHeader = await createNIP98AuthHeader('/export', 'GET'); - const response = await fetch('/export', { + const authHeader = await createNIP98AuthHeader('/api/export', 'GET'); + const response = await fetch('/api/export', { method: 'GET', headers: { 'Authorization': authHeader @@ -515,15 +515,7 @@ {#if selectedTab === 'export'}
Download the complete database as a JSONL file. This includes all events from all users.
- -Download your personal events as a JSONL file.
@@ -531,6 +523,15 @@ 📤 Export My EventsDownload the complete database as a JSONL file. This includes all events from all users.
+ +Please log in to access export functionality.