Skip to content

Commit

Permalink
#1437 Fix edge name for entity origin
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 16, 2020
1 parent 1909572 commit fec2a32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/services/ObservableSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class ObservableSteps(raw: GremlinScala[Vertex])(implicit @Named("with-thehive-s

def organisations = new OrganisationSteps(raw.inTo[ShareObservable].inTo[OrganisationShare])

def origin: OrganisationSteps = new OrganisationSteps(raw.inTo[ShareCase].has(Key("owner") of true).inTo[OrganisationShare])
def origin: OrganisationSteps = new OrganisationSteps(raw.inTo[ShareObservable].has(Key("owner") of true).inTo[OrganisationShare])

override def newInstance(): ObservableSteps = new ObservableSteps(raw.clone())

Expand Down
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/services/TaskSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class TaskSteps(raw: GremlinScala[Vertex])(implicit db: Database, graph: Graph)
def organisations(permission: Permission) =
new OrganisationSteps(raw.inTo[ShareTask].filter(_.outTo[ShareProfile].has(Key("permissions") of permission)).inTo[OrganisationShare])

def origin: OrganisationSteps = new OrganisationSteps(raw.inTo[ShareCase].has(Key("owner") of true).inTo[OrganisationShare])
def origin: OrganisationSteps = new OrganisationSteps(raw.inTo[ShareTask].has(Key("owner") of true).inTo[OrganisationShare])

def assignableUsers(implicit authContext: AuthContext): UserSteps =
organisations(Permissions.manageTask)
Expand Down

0 comments on commit fec2a32

Please # to comment.