Lấy link public chia sẻ cho guest

This commit is contained in:
2026-06-11 19:49:40 +07:00
parent 393128c2ad
commit d7556aa087
+6 -3
View File
@@ -1087,11 +1087,14 @@ async function loadScenes(urlToken = null) {
if (isAdmin || isOwner) {
handleEditDeleteScene(scene);
} else if (scene.privacy === 'public') {
// Cho phép bất kỳ ai (kể cả khách) lấy link chia sẻ của scene công khai
} else {
// Kiểm tra xem Tour hoặc Scene có công khai (Public) không để khách có thể lấy link chia sẻ
const isPublic = (scene.privacy === 'public') || (scene.tourId && scene.tourId.privacy === 'public');
if (isPublic) {
showShareLink(scene);
} else {
showNotification("Bạn không có quyền chỉnh sửa scene này.", 'warning');
showNotification("Bạn không có quyền lấy link chia sẻ của nội dung riêng tư này.", 'warning');
}
}
});