Merge pull request #2 from BlackDex/master

Hide 2FA link in org and hide non functional 2FA buttons
This commit is contained in:
Daniel García 2019-01-07 22:57:42 +01:00 committed by GitHub
commit d9fb32cb65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,4 @@
index 90aad7df..95ceff61 100644
--- a/src/app/services/services.module.ts --- a/src/app/services/services.module.ts
+++ b/src/app/services/services.module.ts +++ b/src/app/services/services.module.ts
@@ -120,20 +120,16 @@ const notificationsService = new NotificationsService(userService, syncService, @@ -120,20 +120,16 @@ const notificationsService = new NotificationsService(userService, syncService,
@ -25,15 +26,25 @@
apiService.setUrls({ apiService.setUrls({
base: isDev ? null : window.location.origin, base: isDev ? null : window.location.origin,
api: isDev ? 'http://localhost:4000' : null, api: isDev ? 'http://localhost:4000' : null,
index 5c114af5..70e7cb12 100644
--- a/src/scss/styles.scss --- a/src/scss/styles.scss
+++ b/src/scss/styles.scss +++ b/src/scss/styles.scss
@@ -1,5 +1,14 @@ @@ -1,5 +1,23 @@
@import "../css/webfonts.css"; @import "../css/webfonts.css";
+/**** START Bitwarden_RS CHANGES ****/ +/**** START Bitwarden_RS CHANGES ****/
+/* Hide any link pointing to billing */ +/* Hide any link pointing to billing */
+a[href$="/settings/billing"] {display: none !important; } +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 */ +/* Hide organization plans */
+app-create-organization > form > div.form-check { display: none !important; } +app-create-organization > form > div.form-check { display: none !important; }
+app-create-organization > form > h2.mt-5 { display: none !important; } +app-create-organization > form > h2.mt-5 { display: none !important; }