(refs #707)Exclude disabled users from completion list
1 parent 0b11b8b commit 4dd8e1dc637fa3a339501c7085ffa733dcce4cd0
@Naoki Takezoe Naoki Takezoe authored on 30 Apr 2015
Showing 1 changed file
View
2
■■■
src/main/scala/gitbucket/core/controller/IndexController.scala
*/
get("/_user/proposals")(usersOnly {
contentType = formats("json")
org.json4s.jackson.Serialization.write(
Map("options" -> getAllUsers().filter(!_.isGroupAccount).map(_.userName).toArray)
Map("options" -> getAllUsers(false).filter(!_.isGroupAccount).map(_.userName).toArray)
)
})
 
/**