mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 08:56:09 +02:00
Fix TODO
This commit is contained in:
@@ -456,7 +456,9 @@ trait AccountControllerBase extends AccountManagementControllerBase {
|
||||
get("/:groupName/_editgroup")(managersOnly {
|
||||
defining(params("groupName")){ groupName =>
|
||||
// TODO Don't use Option.get
|
||||
html.editgroup(getAccountByUserName(groupName, true).get, getGroupMembers(groupName), flash.get("info"))
|
||||
getAccountByUserName(groupName, true).map { account =>
|
||||
html.editgroup(account, getGroupMembers(groupName), flash.get("info"))
|
||||
} getOrElse NotFound()
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user