From fe01ea0a2cf238f22fd1e88fc23894fbf23676d6 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Mon, 19 Oct 2020 17:12:32 +0200 Subject: [PATCH] FEAT #14383 TIME 0:05 fix priv --- src/frontend/app/process/process.component.html | 2 +- src/frontend/service/privileges.service.ts | 12 +++--------- src/lang/lang-fr.json | 1 - 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/frontend/app/process/process.component.html b/src/frontend/app/process/process.component.html index 890aef69677..be29e9dbc12 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 *ngIf="privilegeService.hasCurrentUserPrivilege('show_technical_informations')" mat-icon-button (click)="openTechnicalInfo()" color="primary" [title]="this.translate.instant('lang.showTechnicalInfo')"> + <button *ngIf="privilegeService.hasCurrentUserPrivilege('view_technical_infos')" 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 1098b34d6b2..334d1c78343 100755 --- a/src/frontend/service/privileges.service.ts +++ b/src/frontend/service/privileges.service.ts @@ -416,8 +416,8 @@ export class PrivilegeService { }, { 'id': 'view_technical_infos', - 'label': 'lang.viewTechnicalInformation', - 'comment': 'lang.viewTechnicalInformation', + 'label': 'lang.showTechnicalInformations', + 'comment': 'lang.showTechnicalInformations', 'unit': 'application' }, { @@ -497,13 +497,7 @@ export class PrivilegeService { 'label': 'lang.includeFolderPerimeter', '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 44f7c1c21c2..bc6fb4cdfea 100644 --- a/src/lang/lang-fr.json +++ b/src/lang/lang-fr.json @@ -1644,7 +1644,6 @@ "viewHistoryDesc": "Consulter l'historique des événements relatifs à l'utilisation de Maarch Courrier.", "viewPersonalData": "Consultables", "viewResource": "Voir le document", - "viewTechnicalInformation": "Voir les informations techniques", "visa": "Visa", "visaAnswers": "Viser les projets de réponse", "visaAnswersDesc": "Permet de viser les projets de réponse", -- GitLab