refactor(usermanagement): 修改教师布局权限控制

- 将 TeacherLayout 组件的允许角色从 ["ADMIN", "TEACHER"] 修改为仅 ["ADMIN"]
- 此修改限制了只有管理员可以访问教师管理功能
This commit is contained in:
liguang 2025-06-21 10:50:58 +08:00
parent b3525aee7d
commit 4e1aed4c61

View File

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