RED-2943
This commit is contained in:
parent
0f00cafae3
commit
77859e9216
@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<iqser-circle-button
|
||||
(action)="edit()"
|
||||
*ngIf="permissionsService.canEditFileAttributes(file)"
|
||||
*ngIf="permissionsService.canEditFileAttributes(dossier, file)"
|
||||
[tooltip]="'file-preview.tabs.document-info.edit' | translate"
|
||||
icon="iqser:edit"
|
||||
tooltipPosition="before"
|
||||
|
||||
@ -18,8 +18,8 @@ export class PermissionsService {
|
||||
return this.isApprover(dossier);
|
||||
}
|
||||
|
||||
canEditFileAttributes(file: File): boolean {
|
||||
return this.isFileAssignee(file) && (file.isNew || file.isUnderReview || file.isUnderApproval);
|
||||
canEditFileAttributes(dossier: Dossier, file: File): boolean {
|
||||
return ((file.isUnderReview || file.isNew) && this.isDossierMember(dossier)) || (file.isUnderApproval && this.isApprover(dossier));
|
||||
}
|
||||
|
||||
canToggleAnalysis(file: File): boolean {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user