Skip to content
Snippets Groups Projects
Commit 35dc690d authored by Daniel Gerdes's avatar Daniel Gerdes
Browse files

Add AgentAuthGuard to 'createGroup'-Endpoint

parent 2a17f3a0
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@ import { NotFoundException, UseGuards } from '@nestjs/common';
import { GroupAuthGuard } from '../auth/graphql-auth.guard';
import { Request } from 'express';
import { pubSub } from '../pubSub.instance';
import { AgentAuthGuard } from 'src/auth/agent-auth.guard';
@Resolver(() => Group)
export class GroupResolver {
......@@ -51,7 +52,7 @@ export class GroupResolver {
}
@Mutation(() => Group)
//@UseGuards(GraphQLAuthGuard)
@UseGuards(AgentAuthGuard)
async createGroup(
@Args({ name: 'name', type: () => GraphQLString }) name: string,
) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment