monaco-editor-lsp-next/src/app/(app)/usermanagement/guest/layout.tsx
liguang 360399bdfb refactor(user-management): 重构用户管理系统
- 移除原有的 user 和 problem API,改为使用 Prisma 直接操作数据库
- 新增 admin、teacher、guest 和 problem 的 CRUD 操作
- 优化用户表格组件,支持角色选择和难度选择
- 重构页面组件,使用 Prisma 查询数据
- 更新数据库迁移,增加 TEACHER 角色
2025-06-20 15:29:50 +08:00

5 lines
240 B
TypeScript

import ProtectedLayout from "../_components/ProtectedLayout";
export default function GuestLayout({ children }: { children: React.ReactNode }) {
return <ProtectedLayout allowedRoles={["ADMIN", "TEACHER"]}>{children}</ProtectedLayout>;
}