From bb6b3e5a836935bef80476b940d96291423ff89b Mon Sep 17 00:00:00 2001
From: Florent Poittevin <florent.poittevin@unige.ch>
Date: Thu, 30 Jan 2020 15:18:52 +0100
Subject: [PATCH] fix: preservation job accessible to admin role

---
 .../routables/preservation-home/preservation-home.routable.ts   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/features/preservation/components/routables/preservation-home/preservation-home.routable.ts b/src/app/features/preservation/components/routables/preservation-home/preservation-home.routable.ts
index 917f45876..bef4c3421 100644
--- a/src/app/features/preservation/components/routables/preservation-home/preservation-home.routable.ts
+++ b/src/app/features/preservation/components/routables/preservation-home/preservation-home.routable.ts
@@ -56,7 +56,7 @@ export class PreservationHomeRoutable extends SharedAbstractPresentational {
       titleToTranslate: TRANSLATE("preservation.jobs.home.title"),
       subtitleToTranslate: TRANSLATE("preservation.jobs.home.subtitle"),
       path: RoutesEnum.preservationJob,
-      isVisible: () => PermissionUtil.isUserHavePermission(true, ApplicationRolePermissionEnum.rootPermission, this.userRolesObs),
+      isVisible: () => true,
     },
     {
       avatarIcon: "clipboard-check",
-- 
GitLab