From 516446d600b197df71a8508ee8e722289e806fd3 Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Tue, 23 Feb 2021 18:34:47 +0100
Subject: [PATCH] fix: remove structure delete for users from structure-details

---
 .../components/structure-details/structure-details.component.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/structure-list/components/structure-details/structure-details.component.ts b/src/app/structure-list/components/structure-details/structure-details.component.ts
index 42eb58de7..1e12ab4d7 100644
--- a/src/app/structure-list/components/structure-details/structure-details.component.ts
+++ b/src/app/structure-list/components/structure-details/structure-details.component.ts
@@ -234,7 +234,7 @@ export class StructureDetailsComponent implements OnInit {
     });
   }
   public canDelete(): boolean {
-    if (this.profileService.isAdmin() || this.profileService.isLinkedToStructure(this.structure._id)) {
+    if (this.profileService.isAdmin()) {
       return true;
     }
     return false;
-- 
GitLab