diff --git a/src/common/constants/authorization/credential.rule.types.constants.ts b/src/common/constants/authorization/credential.rule.types.constants.ts index 54f9535db5..3fc6d70d3a 100644 --- a/src/common/constants/authorization/credential.rule.types.constants.ts +++ b/src/common/constants/authorization/credential.rule.types.constants.ts @@ -16,8 +16,6 @@ export const CREDENTIAL_RULE_TYPES_SPACE_COMMUNITY_APPLY_GLOBAL_REGISTERED = 'credentialRuleTypes-spaceCommunityApplyGlobalRegistered'; export const CREDENTIAL_RULE_TYPES_SPACE_COMMUNITY_JOIN_GLOBAL_REGISTERED = 'credentialRuleTypes-spaceCommunityJoinGlobalRegistered'; -export const CREDENTIAL_RULE_TYPES_CALLOUT_SAVE_AS_TEMPLATE = - 'credentialRuleTypes-calloutSaveAsTemplate'; export const CREDENTIAL_RULE_TYPES_CALLOUT_UPDATE_PUBLISHER_ADMINS = 'credentialRuleTypes-calloutUpdatePublisherGlobalAdmins'; export const CREDENTIAL_RULE_TYPES_COMMUNITY_ADD_MEMBERS = diff --git a/src/common/constants/authorization/policy.rule.constants.ts b/src/common/constants/authorization/policy.rule.constants.ts index fc07daeff6..70e1fb8d40 100644 --- a/src/common/constants/authorization/policy.rule.constants.ts +++ b/src/common/constants/authorization/policy.rule.constants.ts @@ -14,8 +14,6 @@ export const POLICY_RULE_COLLABORATION_CREATE = 'policyRule-collaborationCreate'; export const POLICY_RULE_COLLABORATION_WHITEBOARD_CREATE = 'policyRule-collaborationWhiteboardCreate'; -export const POLICY_RULE_COLLABORATION_WHITEBOARD_CONTRIBUTORS_CREATE = - 'policyRule-collaborationWhiteboardContributorsCreate'; export const POLICY_RULE_STORAGE_BUCKET_UPDATER_FILE_UPLOAD = 'policyRule-storageBucketUpdaterFileUpload'; export const POLICY_RULE_STORAGE_BUCKET_CONTRIBUTOR_FILE_UPLOAD = diff --git a/src/common/enums/authorization.privilege.ts b/src/common/enums/authorization.privilege.ts index 3396955e01..48eb4cb722 100644 --- a/src/common/enums/authorization.privilege.ts +++ b/src/common/enums/authorization.privilege.ts @@ -18,7 +18,6 @@ export enum AuthorizationPrivilege { CREATE_MESSAGE_REPLY = 'create-message-reply', CREATE_MESSAGE_REACTION = 'create-message-reaction', CREATE_WHITEBOARD = 'create-whiteboard', - CREATE_WHITEBOARD_RT = 'create-whiteboard-rt', CREATE_SPACE = 'create-space', CREATE_SUBSPACE = 'create-subspace', CREATE_ORGANIZATION = 'create-organization', @@ -42,7 +41,6 @@ export enum AuthorizationPrivilege { MOVE_CONTRIBUTION = 'move-contribution', ACCESS_INTERACTIVE_GUIDANCE = 'access-interactive-guidance', UPDATE_CONTENT = 'update-content', - SAVE_AS_TEMPLATE = 'save-as-template', TRANSFER_RESOURCE = 'transfer-resource', } diff --git a/src/domain/collaboration/collaboration/collaboration.service.authorization.ts b/src/domain/collaboration/collaboration/collaboration.service.authorization.ts index f3c1b3ec80..0b0c89df65 100644 --- a/src/domain/collaboration/collaboration/collaboration.service.authorization.ts +++ b/src/domain/collaboration/collaboration/collaboration.service.authorization.ts @@ -15,8 +15,6 @@ import { CREDENTIAL_RULE_COLLABORATION_CONTRIBUTORS, POLICY_RULE_COLLABORATION_CREATE, POLICY_RULE_CALLOUT_CONTRIBUTE, - CREDENTIAL_RULE_TYPES_CALLOUT_SAVE_AS_TEMPLATE, - POLICY_RULE_COLLABORATION_WHITEBOARD_CONTRIBUTORS_CREATE, } from '@common/constants'; import { CommunityRoleType } from '@common/enums/community.role'; import { TimelineAuthorizationService } from '@domain/timeline/timeline/timeline.service.authorization'; @@ -233,15 +231,6 @@ export class CollaborationAuthorizationService { type: AuthorizationCredential.GLOBAL_ADMIN, resourceID: '', }); - const saveAsTemplateRule = - this.authorizationPolicyService.createCredentialRule( - [AuthorizationPrivilege.SAVE_AS_TEMPLATE], - adminCriterias, - CREDENTIAL_RULE_TYPES_CALLOUT_SAVE_AS_TEMPLATE - ); - - saveAsTemplateRule.cascade = false; - newRules.push(saveAsTemplateRule); return this.authorizationPolicyService.appendCredentialAuthorizationRules( authorization, @@ -304,14 +293,6 @@ export class CollaborationAuthorizationService { POLICY_RULE_CALLOUT_CONTRIBUTE ); privilegeRules.push(createCalloutPrivilege); - - const createWhiteboardRtContributePrivilege = - new AuthorizationPolicyRulePrivilege( - [AuthorizationPrivilege.CREATE_WHITEBOARD_RT], - AuthorizationPrivilege.CONTRIBUTE, - POLICY_RULE_COLLABORATION_WHITEBOARD_CONTRIBUTORS_CREATE - ); - privilegeRules.push(createWhiteboardRtContributePrivilege); } return this.authorizationPolicyService.appendPrivilegeAuthorizationRules(