1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-23 03:33:54 +00:00

[PM-19383] admins unable to download attachments (#14363)

* add admin support for downloading attachments

* fix delete and upload

* fix delete admin to return a response

* fix upload

* add missing param

* use getCipherAdmin

* fix cli
This commit is contained in:
Brandon Treston
2025-05-05 13:36:49 -04:00
committed by GitHub
parent a408990a3c
commit fd43222938
15 changed files with 72 additions and 16 deletions

View File

@@ -11,6 +11,7 @@
<ng-container slot="end">
<bit-item-action>
<app-download-attachment
[admin]="admin"
[cipher]="cipher"
[attachment]="attachment"
[checkPwReprompt]="true"

View File

@@ -44,6 +44,8 @@ export class AttachmentsV2ViewComponent {
// Required for fetching attachment data when viewed from cipher via emergency access
@Input() emergencyAccessId?: EmergencyAccessId;
@Input() admin: boolean = false;
canAccessPremium: boolean;
orgKey: OrgKey;