1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

make sure it has not been already shared

This commit is contained in:
Kyle Spearrin
2018-10-23 10:37:56 -04:00
parent db5855aa4b
commit 3d5ed8f66a
2 changed files with 5 additions and 2 deletions

View File

@@ -86,7 +86,9 @@ export class AddEditComponent extends BaseAddEditComponent {
}
share() {
this.router.navigate(['/share-cipher'], { queryParams: { cipherId: this.cipher.id } });
if (this.cipher.organizationId == null) {
this.router.navigate(['/share-cipher'], { queryParams: { cipherId: this.cipher.id } });
}
}
cancel() {