Skip to content

Commit

Permalink
fix dashboard access on private spaces for non-members (#4797)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinyanakiev authored Dec 20, 2024
1 parent 199f566 commit cefa774
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ export class CollaborationResolverFields {
return tagsetTemplateSet.tagsetTemplates;
}

@AuthorizationAgentPrivilege(AuthorizationPrivilege.READ)
@UseGuards(GraphqlGuard)
@ResolveField('license', () => ILicense, {
nullable: false,
description: 'The License operating on this Collaboration.',
Expand Down
1 change: 0 additions & 1 deletion src/domain/space/space/space.resolver.fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ export class SpaceResolverFields {
return this.spaceService.activeSubscription(space);
}

@UseGuards(GraphqlGuard)
@ResolveField('collaboration', () => ICollaboration, {
nullable: false,
description: 'The collaboration for the Space.',
Expand Down
7 changes: 0 additions & 7 deletions src/services/api/lookup/lookup.resolver.fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,6 @@ export class LookupResolverFields {
return community;
}

@UseGuards(GraphqlGuard)
@ResolveField(() => ICollaboration, {
nullable: true,
description: 'Lookup the specified Collaboration',
Expand All @@ -437,12 +436,6 @@ export class LookupResolverFields {
): Promise<ICollaboration> {
const collaboration =
await this.collaborationService.getCollaborationOrFail(id);
this.authorizationService.grantAccessOrFail(
agentInfo,
collaboration.authorization,
AuthorizationPrivilege.READ,
`lookup Collaboration: ${collaboration.id}`
);

return collaboration;
}
Expand Down

0 comments on commit cefa774

Please sign in to comment.