1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00

Hide card option from context menu when user is affected by card policy (#15272)

* Hide card option from context menu when user is affected by card policy

* Remove unused code
This commit is contained in:
Robyn MacCallum
2025-06-25 12:51:04 -04:00
committed by GitHub
parent cf6b087491
commit 4003608019
3 changed files with 50 additions and 2 deletions

View File

@@ -437,6 +437,8 @@ export default class MainBackground {
private popupViewCacheBackgroundService: PopupViewCacheBackgroundService;
private restrictedItemTypesService: RestrictedItemTypesService;
constructor() {
// Services
const lockedCallback = async (userId: UserId) => {
@@ -1307,6 +1309,13 @@ export default class MainBackground {
this.stateProvider,
);
this.restrictedItemTypesService = new RestrictedItemTypesService(
this.configService,
this.accountService,
this.organizationService,
this.policyService,
);
this.mainContextMenuHandler = new MainContextMenuHandler(
this.stateService,
this.autofillSettingsService,
@@ -1314,6 +1323,7 @@ export default class MainBackground {
this.logService,
this.billingAccountProfileStateService,
this.accountService,
this.restrictedItemTypesService,
);
this.cipherContextMenuHandler = new CipherContextMenuHandler(