mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 22:03:36 +00:00
[AC-1340] Fixed cipher restore for provider users by using the restore-admin endpoints (#5255)
This commit is contained in:
@@ -610,7 +610,8 @@ export class AddEditComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
protected restoreCipher() {
|
||||
return this.cipherService.restoreWithServer(this.cipher.id);
|
||||
const asAdmin = this.organization?.canEditAnyCollection;
|
||||
return this.cipherService.restoreWithServer(this.cipher.id, asAdmin);
|
||||
}
|
||||
|
||||
get defaultOwnerId(): string | null {
|
||||
|
||||
Reference in New Issue
Block a user