Lấy link public chia sẻ cho guest
This commit is contained in:
@@ -1087,11 +1087,14 @@ async function loadScenes(urlToken = null) {
|
|||||||
|
|
||||||
if (isAdmin || isOwner) {
|
if (isAdmin || isOwner) {
|
||||||
handleEditDeleteScene(scene);
|
handleEditDeleteScene(scene);
|
||||||
} else if (scene.privacy === 'public') {
|
} else {
|
||||||
// Cho phép bất kỳ ai (kể cả khách) lấy link chia sẻ của scene công khai
|
// 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);
|
showShareLink(scene);
|
||||||
} else {
|
} 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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user