From 6dfc8112925abe25b1376d38aaa69bf249f180fc Mon Sep 17 00:00:00 2001 From: locphamtran Date: Mon, 8 Jun 2026 20:46:01 +0700 Subject: [PATCH] =?UTF-8?q?S=E1=BB=ADa=20l=E1=BB=97i=20UX=20trong=20dashbo?= =?UTF-8?q?ard=20v=C3=A0=20privacy=20c=E1=BB=A7a=20ng=C6=B0=E1=BB=9Di=20d?= =?UTF-8?q?=C3=B9ng=20=E1=BB=9F=20ch=E1=BA=BF=20=C4=91=E1=BB=99=20private?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/routes/apiRoutes.js | 11 +--- frontend/css/style.css | 3 +- frontend/index.html | 12 +++- frontend/js/main_map.js | 107 ++++++++++++++++++++++++++---------- 4 files changed, 93 insertions(+), 40 deletions(-) diff --git a/backend/routes/apiRoutes.js b/backend/routes/apiRoutes.js index 7c29927..149b0ec 100644 --- a/backend/routes/apiRoutes.js +++ b/backend/routes/apiRoutes.js @@ -207,21 +207,14 @@ router.get('/scenes', optionalAuth, async (req, res) => { query = { $or: [ { privacy: 'public' }, - { privacy: 'member' }, - { privacy: 'shared' }, // shareToken will be required to fetch panorama, but coordinates show on map { createdBy: req.user._id }, { sharedWith: req.user._id }, { sharedEmails: req.user.email } ] }; } else { - // Guests: See only public or shared scenes - query = { - $or: [ - { privacy: 'public' }, - { privacy: 'shared' } - ] - }; + // Guests: See only public scenes + query = { privacy: 'public' }; } const scenes = await Scene.find(query) diff --git a/frontend/css/style.css b/frontend/css/style.css index 5259a8c..7e79aed 100644 --- a/frontend/css/style.css +++ b/frontend/css/style.css @@ -596,7 +596,8 @@ html, body { #logout-confirm-modal, #delete-asset-confirm-modal, -#success-modal { +#success-modal, +#error-modal { z-index: 5500; } diff --git a/frontend/index.html b/frontend/index.html index 9f32bcb..3be9881 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -314,12 +314,22 @@ + + +