diff --git a/src/frontend/app/process/process.component.html b/src/frontend/app/process/process.component.html index bb1a7e0aacb0861bd3bf0cad729df66e9903e151..890aef696770f34821d76b3ad831425b7c65920c 100644 --- a/src/frontend/app/process/process.component.html +++ b/src/frontend/app/process/process.component.html @@ -14,7 +14,7 @@ </div> <div class="indexing-form-container"> <div *ngIf="!isModalOpen() && currentTool !== 'dashboard'" style="display: flex;justify-content: flex-end;"> - <button mat-icon-button (click)="openTechnicalInfo()" color="primary" [title]="this.translate.instant('lang.showTechnicalInfo')"> + <button *ngIf="privilegeService.hasCurrentUserPrivilege('show_technical_informations')" mat-icon-button (click)="openTechnicalInfo()" color="primary" [title]="this.translate.instant('lang.showTechnicalInfo')"> <mat-icon class="far fa-file-code"></mat-icon> </button> <button mat-icon-button (click)="createModal()" color="primary" [title]="this.translate.instant('lang.openInExternalModal')"> diff --git a/src/frontend/service/privileges.service.ts b/src/frontend/service/privileges.service.ts index 80d6612ae36ccd1213a24cfeedbe816f065866e8..1098b34d6b25e21adfa347f4c298a3cb89a2dd52 100755 --- a/src/frontend/service/privileges.service.ts +++ b/src/frontend/service/privileges.service.ts @@ -498,6 +498,12 @@ export class PrivilegeService { 'comment': 'lang.includeFolderPerimeter', 'unit': 'application' }, + { + 'id': 'show_technical_informations', + 'label': 'lang.showTechnicalInformations', + 'comment': 'lang.showTechnicalInformations', + 'unit': 'application' + }, ]; private menus: menu[] = [ diff --git a/src/lang/lang-fr.json b/src/lang/lang-fr.json index 133d90dd2c79e0136efc6b9a02e2d31b8e083adc..44f7c1c21c2d4df7533da63454af91132526f133 100644 --- a/src/lang/lang-fr.json +++ b/src/lang/lang-fr.json @@ -2102,5 +2102,7 @@ "connections": "Connexions", "connectionsDesc": "Administrer les modes de connexion de l'application", "ssoConnections": "Connexions SSO", - "sso": "SSO" + "sso": "SSO", + "docserverPathFile": "Chemin du fichier stocké", + "showTechnicalInformations": "Afficher les informations techniques du courrier sur la page de traitement / fiche détaillée" }