完成了对记忆功能的升级
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
2025-11-15 22:16:12 +08:00
parent cf3cb916b7
commit 72c6791d93
30 changed files with 363 additions and 450 deletions

View File

@@ -13,7 +13,7 @@ export default async function FoldersPage({
if (!id) {
redirect("/folders");
}
if (!session?.user?.name) redirect(`/login`);
if (!session?.user?.name) redirect(`/login?redirect=/folders/${id}`);
if ((await getOwnerByFolderId(id)) !== session.user.name) {
return "you are not the owner of this folder";
}