use enrollment organization for submissions
This commit is contained in:
@@ -315,22 +315,12 @@ export class InstructorService {
|
||||
organizationName ? { organizationName } : undefined,
|
||||
].filter(Boolean) as Prisma.StudentEnrollmentWhereInput[],
|
||||
user: {
|
||||
AND: [
|
||||
{
|
||||
OR: [
|
||||
organizationId ? { primaryOrganizationId: organizationId } : undefined,
|
||||
organizationName ? { primaryOrganizationName: organizationName } : undefined,
|
||||
].filter(Boolean) as Prisma.UserWhereInput[],
|
||||
},
|
||||
{
|
||||
OR: [
|
||||
{ authRole: null },
|
||||
{ authRole: 'STUDENT' },
|
||||
{ authRole: 'USER' },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
include: {
|
||||
user: {
|
||||
|
||||
Reference in New Issue
Block a user