Skip to content

Commit

Permalink
#1316 Switch organisation on /user/current APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed May 15, 2020
1 parent f03fb3f commit 4885ffb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ScalliGraph
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/controllers/v0/UserCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class UserCtrl @Inject() (
.richUser(OrganisationSrv.administration.name)
.getOrFail()
)
.map(user => Results.Ok(user.toJson))
.map(user => Results.Ok(user.toJson).withHeaders("X-Organisation" -> request.organisation))
}

def create: Action[AnyContent] =
Expand Down
2 changes: 1 addition & 1 deletion thehive/app/org/thp/thehive/controllers/v1/UserCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class UserCtrl @Inject() (
.current
.richUserWithCustomRenderer(request.organisation, _.organisationWithRole.map(_.asScala.toSeq))
.getOrFail()
.map(user => Results.Ok(user.toJson))
.map(user => Results.Ok(user.toJson).withHeaders("X-Organisation" -> request.organisation))
}

def create: Action[AnyContent] =
Expand Down

0 comments on commit 4885ffb

Please sign in to comment.