From e122913319619877e3aaee8f8f6381f30ee855aa Mon Sep 17 00:00:00 2001 From: BlackDex Date: Mon, 7 Jan 2019 17:28:32 +0100 Subject: [PATCH] Hide 2FA link in org and hide non functional 2FA buttons --- patches/v2.8.0.patch | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/patches/v2.8.0.patch b/patches/v2.8.0.patch index ff1364c..9e25e48 100644 --- a/patches/v2.8.0.patch +++ b/patches/v2.8.0.patch @@ -1,3 +1,4 @@ +index 90aad7df..95ceff61 100644 --- a/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts @@ -120,20 +120,16 @@ const notificationsService = new NotificationsService(userService, syncService, @@ -25,15 +26,25 @@ apiService.setUrls({ base: isDev ? null : window.location.origin, api: isDev ? 'http://localhost:4000' : null, +index 5c114af5..70e7cb12 100644 --- a/src/scss/styles.scss +++ b/src/scss/styles.scss -@@ -1,5 +1,14 @@ +@@ -1,5 +1,23 @@ @import "../css/webfonts.css"; +/**** START Bitwarden_RS CHANGES ****/ +/* Hide any link pointing to billing */ +a[href$="/settings/billing"] {display: none !important; } + ++/* Hide Two-Factor menu in Organization settings */ ++app-org-settings a[href$="/settings/two-factor"] { display: none !important; } ++ ++/* Hide 2FA Duo button */ ++ul.list-group.list-group-2fa > li:nth-child(3) button { display: none !important; } ++ ++/* Hide 2FA Email button */ ++ul.list-group.list-group-2fa > li:nth-child(5) button { display: none !important; } ++ +/* Hide organization plans */ +app-create-organization > form > div.form-check { display: none !important; } +app-create-organization > form > h2.mt-5 { display: none !important; }