diff --git a/src/domain/space/account/account.service.authorization.ts b/src/domain/space/account/account.service.authorization.ts index d3551851d..72f7844e5 100644 --- a/src/domain/space/account/account.service.authorization.ts +++ b/src/domain/space/account/account.service.authorization.ts @@ -282,24 +282,10 @@ export class AccountAuthorizationService { accountHostManage.cascade = true; newRules.push(accountHostManage); - const vcCampaignCredential: ICredentialDefinition = { - type: AuthorizationCredential.VC_CAMPAIGN, - resourceID: '', - }; - - const betaTesterCredential: ICredentialDefinition = { - type: AuthorizationCredential.BETA_TESTER, - resourceID: '', - }; - - const createResourcesUnderAccountCredentials = [ - vcCampaignCredential, - betaTesterCredential, - ]; // If the user is a beta tester or part of VC campaign then can create the resources const createSpace = this.authorizationPolicyService.createCredentialRule( [AuthorizationPrivilege.CREATE_SPACE], - createResourcesUnderAccountCredentials, + [...hostCredentials], CREDENTIAL_RULE_PLATFORM_CREATE_SPACE ); createSpace.cascade = false; @@ -307,7 +293,7 @@ export class AccountAuthorizationService { const createVC = this.authorizationPolicyService.createCredentialRule( [AuthorizationPrivilege.CREATE_VIRTUAL_CONTRIBUTOR], - createResourcesUnderAccountCredentials, + [...hostCredentials], CREDENTIAL_RULE_PLATFORM_CREATE_VC ); createVC.cascade = false; @@ -316,7 +302,7 @@ export class AccountAuthorizationService { const createInnovationPack = this.authorizationPolicyService.createCredentialRule( [AuthorizationPrivilege.CREATE_INNOVATION_PACK], - createResourcesUnderAccountCredentials, + [...hostCredentials], CREDENTIAL_RULE_PLATFORM_CREATE_INNOVATION_PACK ); createInnovationPack.cascade = false;