Skip to content

Commit

Permalink
#2366 Update organisatIds when the share is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Apr 5, 2022
1 parent 31367bd commit c7cd8b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/controllers/v1/ShareCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class ShareCtrl @Inject() (
else if (shareSrv.get(shareId).has(_.owner, true).exists)
Failure(AuthorizationError("You can't remove initial shares"))
else
shareSrv.get(shareId).getOrFail("Share").flatMap(shareSrv.delete(_))
shareSrv.unshareCase(shareId)

def updateShare(shareId: String): Action[AnyContent] =
entrypoint("update share")
Expand Down

0 comments on commit c7cd8b3

Please sign in to comment.