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