From f03dabb6d6a643d113da5f6e8ad888eb213ccdae Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Thu, 11 Jul 2024 08:47:49 +1000 Subject: [PATCH] Remove BulkDeviceApproval feature flag (#9931) --- .../device-approval/device-approval.program.ts | 6 ------ .../manage/device-approvals/device-approvals.component.html | 1 - .../manage/device-approvals/device-approvals.component.ts | 4 ---- libs/common/src/enums/feature-flag.enum.ts | 2 -- 4 files changed, 13 deletions(-) diff --git a/bitwarden_license/bit-cli/src/admin-console/device-approval/device-approval.program.ts b/bitwarden_license/bit-cli/src/admin-console/device-approval/device-approval.program.ts index 181640a5f8..028eceffa9 100644 --- a/bitwarden_license/bit-cli/src/admin-console/device-approval/device-approval.program.ts +++ b/bitwarden_license/bit-cli/src/admin-console/device-approval/device-approval.program.ts @@ -1,7 +1,6 @@ import { program, Command } from "commander"; import { BaseProgram } from "@bitwarden/cli/base-program"; -import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum"; import { ServiceContainer } from "../../service-container"; @@ -41,7 +40,6 @@ export class DeviceApprovalProgram extends BaseProgram { .description("List all pending requests for an organization") .requiredOption("--organizationid ", "The organization id (required)") .action(async (options: Options) => { - await this.exitIfFeatureFlagDisabled(FeatureFlag.BulkDeviceApproval); await this.exitIfLocked(); const cmd = ListCommand.create(this.serviceContainer); @@ -56,7 +54,6 @@ export class DeviceApprovalProgram extends BaseProgram { .requiredOption("--organizationid ", "The organization id (required)") .description("Approve a pending request") .action(async (id: string, options: Options) => { - await this.exitIfFeatureFlagDisabled(FeatureFlag.BulkDeviceApproval); await this.exitIfLocked(); const cmd = ApproveCommand.create(this.serviceContainer); @@ -70,7 +67,6 @@ export class DeviceApprovalProgram extends BaseProgram { .description("Approve all pending requests for an organization") .requiredOption("--organizationid ", "The organization id (required)") .action(async (options: Options) => { - await this.exitIfFeatureFlagDisabled(FeatureFlag.BulkDeviceApproval); await this.exitIfLocked(); const cmd = ApproveAllCommand.create(this.serviceContainer); @@ -85,7 +81,6 @@ export class DeviceApprovalProgram extends BaseProgram { .requiredOption("--organizationid ", "The organization id (required)") .description("Deny a pending request") .action(async (id: string, options: Options) => { - await this.exitIfFeatureFlagDisabled(FeatureFlag.BulkDeviceApproval); await this.exitIfLocked(); const cmd = DenyCommand.create(this.serviceContainer); @@ -99,7 +94,6 @@ export class DeviceApprovalProgram extends BaseProgram { .description("Deny all pending requests for an organization") .requiredOption("--organizationid ", "The organization id (required)") .action(async (options: Options) => { - await this.exitIfFeatureFlagDisabled(FeatureFlag.BulkDeviceApproval); await this.exitIfLocked(); const cmd = DenyAllCommand.create(this.serviceContainer); diff --git a/bitwarden_license/bit-web/src/app/admin-console/organizations/manage/device-approvals/device-approvals.component.html b/bitwarden_license/bit-web/src/app/admin-console/organizations/manage/device-approvals/device-approvals.component.html index cfc6538dbd..7723324781 100644 --- a/bitwarden_license/bit-web/src/app/admin-console/organizations/manage/device-approvals/device-approvals.component.html +++ b/bitwarden_license/bit-web/src/app/admin-console/organizations/manage/device-approvals/device-approvals.component.html @@ -29,7 +29,6 @@ >