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

[Reset Password] Custom Permission pairing (#1027)

This commit is contained in:
Vincent Salucci
2021-06-14 13:12:15 -05:00
committed by GitHub
parent c198ec32bb
commit 6d54740aaf
3 changed files with 16 additions and 2 deletions

View File

@@ -143,6 +143,15 @@ export class UserAddEditComponent implements OnInit {
return p;
}
handleDependentPermissions() {
// Manage Password Reset must have Manage Users enabled
if (this.permissions.manageResetPassword && !this.permissions.manageUsers) {
this.permissions.manageUsers = true;
(document.getElementById('manageUsers') as HTMLInputElement).checked = true;
this.platformUtilsService.showToast('info', null, this.i18nService.t('resetPasswordManageUsers'));
}
}
async submit() {
let collections: SelectionReadOnlyRequest[] = null;
if (this.access !== 'all') {