Skip to content

Commit

Permalink
#1036 Override the case owner if format is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Jul 3, 2019
1 parent a3e6edd commit 091b401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thehive-backend/app/services/CaseSrv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class CaseSrv @Inject()(
}

def create(fields: Fields, template: Option[CaseTemplate] = None)(implicit authContext: AuthContext): Future[Case] = {
val fieldsWithOwner = fields.get("owner") match {
val fieldsWithOwner = fields.getString("owner") match {
case None fields.set("owner", authContext.userId)
case Some(_) fields
}
Expand Down

0 comments on commit 091b401

Please sign in to comment.