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:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user