Hoàn thành việc chỉnh sửa quyền privacy giữa các tour và scene

This commit is contained in:
2026-06-10 11:01:12 +07:00
parent 6378bcae5d
commit 727bda9b48
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ router.get('/:id', optionalAuth, async (req, res) => {
}
}
if (!hasAccess) return res.status(403).json({ message: 'Access denied' });
if (!hasAccess) return res.status(403).json({ message: 'Bạn không được phép di chuyển đến cảnh này' });
// [BẢO MẬT] Một cảnh là cảnh con nếu nó thuộc về một tour và tourId khác với ID chính nó
const isChild = scene.tourId && scene.tourId.toString() !== scene._id.toString();