1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-21 10:43:35 +00:00

Allow organizational admins to assign clone ownership (#458)

This commit is contained in:
Vincent Salucci
2020-02-12 15:11:38 -06:00
committed by GitHub
parent 6ed991593a
commit b7cd18b715
3 changed files with 17 additions and 3 deletions

View File

@@ -154,6 +154,10 @@ export class AddEditComponent extends BaseAddEditComponent {
}
}
protected allowOwnershipAssignment() {
return (!this.editMode || this.cloneMode) && this.ownershipOptions != null && this.ownershipOptions.length > 1;
}
private async totpTick(intervalSeconds: number) {
const epoch = Math.round(new Date().getTime() / 1000.0);
const mod = epoch % intervalSeconds;