Skip to content

Commit

Permalink
take rabbit suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
techsmyth committed Dec 7, 2024
1 parent d8674c0 commit 3f5be71
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/domain/space/space/space.service.authorization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,17 @@ 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
);
if (!isPrivate) {
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(
Expand Down Expand Up @@ -167,6 +168,7 @@ export class SpaceAuthorizationService {
spaceSettings
);
break;
}
}

let spaceMembershipAllowed = true;
Expand Down

0 comments on commit 3f5be71

Please sign in to comment.