Skip to content

Commit

Permalink
#2246 Add sort capability on user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Nov 19, 2021
1 parent a0f4ab8 commit ac9a073
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ScalliGraph
1 change: 1 addition & 0 deletions thehive/app/org/thp/thehive/controllers/v0/UserCtrl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ class PublicUser @Inject() (userSrv: UserSrv, organisationSrv: OrganisationSrv)
}
}
)
.property("profile", UMapping.string)(_.authSelect((users, authContext) => users.profile(authContext.organisation).value(_.name)).readonly)
.build

}
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ class Properties @Inject() (
.property("name", UMapping.string)(_.field.readonly)
.property("locked", UMapping.boolean)(_.field.readonly)
.property("avatar", UMapping.string.optional)(_.select(_.avatar.value(_.attachmentId).domainMap(id => s"/api/datastore/$id")).readonly)
.property("profile", UMapping.string)(_.authSelect((users, authContext) => users.profile(authContext.organisation).value(_.name)).readonly)
.build

lazy val observable: PublicProperties =
Expand Down

0 comments on commit ac9a073

Please sign in to comment.