Skip to content

Commit

Permalink
lookup of space checks for READ_ABOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
techsmyth committed Dec 13, 2024
1 parent 98916ac commit edf550a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/services/api/lookup/lookup.resolver.fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,12 @@ export class LookupResolverFields {
@Args('ID', { type: () => UUID }) id: string
): Promise<ISpace> {
const space = await this.spaceService.getSpaceOrFail(id);
// TODO: Fix this when dealing with public visibility of spaces
// this.authorizationService.grantAccessOrFail(
// agentInfo,
// space.authorization,
// AuthorizationPrivilege.READ,
// `lookup Space: ${space.id}`
// );
this.authorizationService.grantAccessOrFail(
agentInfo,
space.authorization,
AuthorizationPrivilege.READ_ABOUT,
`lookup Space: ${space.id}`
);

return space;
}
Expand Down

0 comments on commit edf550a

Please sign in to comment.