From c05b6eb116a1c98d21a58b7f900133ff6e066e8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rui=20Tom=C3=A9?= <108268980+r-tome@users.noreply.github.com> Date: Tue, 17 Sep 2024 14:22:17 +0100 Subject: [PATCH] [PM-11667] Remove all code related to the outdated custom permissions 'Edit/Delete Assigned Collections' (#10904) * [PM-11667] Remove all code related to the outdated custom permissions 'Edit/Delete Assigned Collections' * Revert change made to data model in state migration --- apps/web/src/locales/en/messages.json | 6 ------ libs/common/src/admin-console/models/api/permissions.api.ts | 4 ---- libs/common/src/auth/services/key-connector.service.spec.ts | 2 -- 3 files changed, 12 deletions(-) diff --git a/apps/web/src/locales/en/messages.json b/apps/web/src/locales/en/messages.json index 7b518e4899..9b7d44150e 100644 --- a/apps/web/src/locales/en/messages.json +++ b/apps/web/src/locales/en/messages.json @@ -4861,12 +4861,6 @@ "deleteAnyCollection": { "message": "Delete any collection" }, - "editAssignedCollections": { - "message": "Edit assigned collections" - }, - "deleteAssignedCollections": { - "message": "Delete assigned collections" - }, "manageGroups": { "message": "Manage groups" }, diff --git a/libs/common/src/admin-console/models/api/permissions.api.ts b/libs/common/src/admin-console/models/api/permissions.api.ts index 4eb055ea79..e6b435294f 100644 --- a/libs/common/src/admin-console/models/api/permissions.api.ts +++ b/libs/common/src/admin-console/models/api/permissions.api.ts @@ -7,8 +7,6 @@ export class PermissionsApi extends BaseResponse { createNewCollections: boolean; editAnyCollection: boolean; deleteAnyCollection: boolean; - editAssignedCollections: boolean; - deleteAssignedCollections: boolean; manageCiphers: boolean; manageGroups: boolean; manageSso: boolean; @@ -29,8 +27,6 @@ export class PermissionsApi extends BaseResponse { this.createNewCollections = this.getResponseProperty("CreateNewCollections"); this.editAnyCollection = this.getResponseProperty("EditAnyCollection"); this.deleteAnyCollection = this.getResponseProperty("DeleteAnyCollection"); - this.editAssignedCollections = this.getResponseProperty("EditAssignedCollections"); - this.deleteAssignedCollections = this.getResponseProperty("DeleteAssignedCollections"); this.manageCiphers = this.getResponseProperty("ManageCiphers"); this.manageGroups = this.getResponseProperty("ManageGroups"); diff --git a/libs/common/src/auth/services/key-connector.service.spec.ts b/libs/common/src/auth/services/key-connector.service.spec.ts index 5d1aff45f6..0d36bc8595 100644 --- a/libs/common/src/auth/services/key-connector.service.spec.ts +++ b/libs/common/src/auth/services/key-connector.service.spec.ts @@ -340,8 +340,6 @@ describe("KeyConnectorService", () => { createNewCollections: false, editAnyCollection: false, deleteAnyCollection: false, - editAssignedCollections: false, - deleteAssignedCollections: false, manageGroups: false, managePolicies: false, manageSso: false,