mirror of
https://github.com/massbug/judge4c.git
synced 2025-07-04 07:40:51 +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";
|
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>;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user