forked from EduCraft/curriculum-project-hub
feat(hub): 支持教师团队权限
This commit is contained in:
@@ -34,6 +34,10 @@ export async function resetDb(): Promise<void> {
|
||||
"PermissionSettings",
|
||||
"PermissionGrant",
|
||||
"RoleTriggerGrant",
|
||||
"ExternalPrincipalMembership",
|
||||
"TeamExternalBinding",
|
||||
"TeamMembership",
|
||||
"Team",
|
||||
"ProjectAgentLock",
|
||||
"AgentRun",
|
||||
"AgentSession",
|
||||
@@ -277,7 +281,8 @@ export async function seedProject(
|
||||
create: {
|
||||
resourceType: "PROJECT",
|
||||
resourceId: projectId,
|
||||
principal,
|
||||
principalType: "USER",
|
||||
principalId: principal,
|
||||
role,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user