From f566d7906a5d96ddf58a40f95c0932ec1761518b Mon Sep 17 00:00:00 2001 From: Nabil Adouani Date: Wed, 20 May 2020 11:45:49 +0200 Subject: [PATCH] #1316 Fix the flow query for to take into account users in multi orgs --- thehive/app/org/thp/thehive/services/AuditSrv.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/thehive/app/org/thp/thehive/services/AuditSrv.scala b/thehive/app/org/thp/thehive/services/AuditSrv.scala index feb237fc81..75891d625e 100644 --- a/thehive/app/org/thp/thehive/services/AuditSrv.scala +++ b/thehive/app/org/thp/thehive/services/AuditSrv.scala @@ -371,9 +371,7 @@ class AuditSteps(raw: GremlinScala[Vertex])(implicit db: Database, schema: Schem _.inTo[ShareObservable].inTo[OrganisationShare], _.outTo[AlertOrganisation] ) - .inTo[RoleOrganisation] - .inTo[UserRole] - .has(Key("login") of authContext.userId) + .has(Key("name") of authContext.organisation) ) )