mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-04 17:30:52 +00:00
refactor(usermanagement): 修改教师布局权限控制
- 将 TeacherLayout 组件的允许角色从 ["ADMIN", "TEACHER"] 修改为仅 ["ADMIN"] - 此修改限制了只有管理员可以访问教师管理功能
This commit is contained in:
parent
b3525aee7d
commit
4e1aed4c61
@ -1,5 +1,5 @@
|
||||
import ProtectedLayout from "../_components/ProtectedLayout";
|
||||
|
||||
export default function TeacherLayout({ children }: { children: React.ReactNode }) {
|
||||
return <ProtectedLayout allowedRoles={["ADMIN", "TEACHER"]}>{children}</ProtectedLayout>;
|
||||
return <ProtectedLayout allowedRoles={["ADMIN"]}>{children}</ProtectedLayout>;
|
||||
}
|
Loading…
Reference in New Issue
Block a user