From 3f5be715b703214f75061be036927afaabfa13f6 Mon Sep 17 00:00:00 2001 From: Neil Smyth Date: Sat, 7 Dec 2024 12:40:01 +0100 Subject: [PATCH] take rabbit suggestion --- src/domain/space/space/space.service.authorization.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/domain/space/space/space.service.authorization.ts b/src/domain/space/space/space.service.authorization.ts index 05ce65563..8e40e9121 100644 --- a/src/domain/space/space/space.service.authorization.ts +++ b/src/domain/space/space/space.service.authorization.ts @@ -121,7 +121,7 @@ export class SpaceAuthorizationService { // Allow the parent admins to also delete subspaces let parentSpaceAdminCredentialCriterias: ICredentialDefinition[] = []; switch (space.level) { - case SpaceLevel.SPACE: + case SpaceLevel.SPACE: { space.authorization = this.resetToLevelZeroSpaceAuthorization( space.authorization ); @@ -129,8 +129,9 @@ export class SpaceAuthorizationService { space.authorization.anonymousReadAccess = true; } break; + } case SpaceLevel.CHALLENGE: - case SpaceLevel.OPPORTUNITY: + case SpaceLevel.OPPORTUNITY: { if (isPrivate) { // Key: private get the base space authorization setup, that is then extended space.authorization = this.resetToLevelZeroSpaceAuthorization( @@ -167,6 +168,7 @@ export class SpaceAuthorizationService { spaceSettings ); break; + } } let spaceMembershipAllowed = true;