mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-09 06:55:54 +01:00
(refs #8)Start to implement group management.
This commit is contained in:
@@ -60,9 +60,10 @@ trait RepositorySettingsControllerBase extends ControllerBase with FlashMapSuppo
|
||||
/**
|
||||
* JSON API for collaborator completion.
|
||||
*/
|
||||
// TODO Merge with UserManagementController
|
||||
get("/:owner/:repository/settings/collaborators/proposals")(usersOnly {
|
||||
contentType = formats("json")
|
||||
org.json4s.jackson.Serialization.write(Map("options" -> getAllUsers.map(_.userName).toArray))
|
||||
org.json4s.jackson.Serialization.write(Map("options" -> getAllUsers.filter(!_.isGroupAccount).map(_.userName).toArray))
|
||||
})
|
||||
|
||||
/**
|
||||
|
||||
@@ -68,5 +68,18 @@ trait UserManagementControllerBase extends AccountManagementControllerBase {
|
||||
|
||||
} getOrElse NotFound
|
||||
})
|
||||
|
||||
|
||||
get("/admin/users/_newgroup"){
|
||||
admin.users.html.group(None)
|
||||
}
|
||||
|
||||
/**
|
||||
* JSON API for collaborator completion.
|
||||
*/
|
||||
// TODO Merge with RepositorySettingsController
|
||||
get("/admin/users/_members"){
|
||||
contentType = formats("json")
|
||||
org.json4s.jackson.Serialization.write(Map("options" -> getAllUsers.filter(!_.isGroupAccount).map(_.userName).toArray))
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user