mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 17:53:39 +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:
@@ -11,6 +11,7 @@
|
||||
<ng-container slot="end">
|
||||
<bit-item-action>
|
||||
<app-download-attachment
|
||||
[admin]="admin"
|
||||
[cipher]="cipher"
|
||||
[attachment]="attachment"
|
||||
[checkPwReprompt]="true"
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -73,7 +73,11 @@
|
||||
|
||||
<!-- ATTACHMENTS SECTION -->
|
||||
<ng-container *ngIf="cipher.attachments">
|
||||
<app-attachments-v2-view [emergencyAccessId]="emergencyAccessId" [cipher]="cipher">
|
||||
<app-attachments-v2-view
|
||||
[emergencyAccessId]="emergencyAccessId"
|
||||
[cipher]="cipher"
|
||||
[admin]="isAdminConsole"
|
||||
>
|
||||
</app-attachments-v2-view>
|
||||
</ng-container>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user