mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-06 05:25:50 +01:00
(refs #241)Modify AccountService#getGroupMembers() to returns list of GroupMember instead of Tuple2
This commit is contained in:
@@ -204,7 +204,7 @@ trait RepositoryService { self: AccountService =>
|
||||
|
||||
private def getRepositoryManagers(userName: String): Seq[String] =
|
||||
if(getAccountByUserName(userName).exists(_.isGroupAccount)){
|
||||
getGroupMembers(userName).filter(_._2).map(_._1)
|
||||
getGroupMembers(userName).collect { case x if(x.isManager) => x.userName }
|
||||
} else {
|
||||
Seq(userName)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user