Skip to content

Commit

Permalink
fix: Allow Instructors to create prospect chats (#979)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonas Wilms <[email protected]>
  • Loading branch information
Jonasdoubleyou and Jonas Wilms authored Feb 3, 2024
1 parent 0dcd3ab commit b4bbf15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql/chat/mutations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class MutateChatResolver {
}

@Mutation(() => String)
@Authorized(Role.PUPIL)
@Authorized(Role.PARTICIPANT, Role.INSTRUCTOR)
async prospectChatCreate(@Ctx() context: GraphQLContext, @Arg('instructorUserId') instructorUserId: string, @Arg('subcourseId') subcourseId: number) {
const { user: prospectUser } = context;
const instructorUser = await getUser(instructorUserId);
Expand Down

0 comments on commit b4bbf15

Please sign in to comment.