1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

fixes for non-admin actions on org vault list

This commit is contained in:
Kyle Spearrin
2018-07-27 22:36:25 -04:00
parent 7c882ed40c
commit dc69887628
5 changed files with 41 additions and 8 deletions

View File

@@ -76,4 +76,11 @@ export class CiphersComponent extends BaseCiphersComponent {
events(c: CipherView) {
this.onEventsClicked.emit(c);
}
protected deleteCipher(id: string) {
if (!this.organization.isAdmin) {
return super.deleteCipher(id);
}
return this.apiService.deleteCipherAdmin(id);
}
}