diff --git a/ScalliGraph b/ScalliGraph index 60cb5eadee..b403c2c2db 160000 --- a/ScalliGraph +++ b/ScalliGraph @@ -1 +1 @@ -Subproject commit 60cb5eadee4f0d2c305190f83a8516b55cb3ea30 +Subproject commit b403c2c2db7e163550022283512c1f6d0c9fe91a diff --git a/thehive/app/org/thp/thehive/services/CaseSrv.scala b/thehive/app/org/thp/thehive/services/CaseSrv.scala index bf19a7ea81..0f86e0b7ed 100644 --- a/thehive/app/org/thp/thehive/services/CaseSrv.scala +++ b/thehive/app/org/thp/thehive/services/CaseSrv.scala @@ -214,8 +214,9 @@ class CaseSrv @Inject() ( .flatMap { case share if share.owner => get(`case`).shares.toSeq.toTry(s => shareSrv.unshareCase(s._id)).map(_ => get(`case`).remove()) - case share => - shareSrv.unshareCase(share._id) + case _ => + throw BadRequestError("Your organisation must be owner of the case") + // shareSrv.unshareCase(share._id) } .map(_ => auditSrv.`case`.delete(`case`, organisation, Some(details))) }