We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95a2ba3 commit 2d38b86Copy full SHA for 2d38b86
server/middleware/src/spaceSecurity.ts
@@ -466,7 +466,8 @@ export class SpaceSecurityMiddleware extends BaseMiddleware implements Middlewar
466
...this.systemSpaces,
467
...this.mainSpaces
468
]
469
- const unfilteredRes = isData ? res : [...res, ...this.publicSpaces]
+ const ignorePublicSpaces = isData || account.role === AccountRole.ReadOnlyGuest
470
+ const unfilteredRes = ignorePublicSpaces ? res : [...res, ...this.publicSpaces]
471
if (showArchived) {
472
return unfilteredRes
473
}
0 commit comments