admin: display team details instead of members
This commit is contained in:
parent
c711f9e78e
commit
ad95ce6f16
@ -85,6 +85,8 @@ func listTeam(args []string, body []byte) (interface{}, error) {
|
|||||||
return fic.MyJSONTeam(team, true)
|
return fic.MyJSONTeam(team, true)
|
||||||
} else if args[1] == "wait.json" {
|
} else if args[1] == "wait.json" {
|
||||||
return fic.MyJSONTeam(team, false)
|
return fic.MyJSONTeam(team, false)
|
||||||
|
} else if team != nil && args[1] == "members" {
|
||||||
|
return team.GetMembers()
|
||||||
} else if args[1] == "certificate" && team != nil {
|
} else if args[1] == "certificate" && team != nil {
|
||||||
return CertificateAPI(*team, args[2:])
|
return CertificateAPI(*team, args[2:])
|
||||||
} else if team != nil && args[1] == "name" {
|
} else if team != nil && args[1] == "name" {
|
||||||
@ -102,7 +104,7 @@ func listTeam(args []string, body []byte) (interface{}, error) {
|
|||||||
} else if team, err := fic.GetTeam(tid); err != nil {
|
} else if team, err := fic.GetTeam(tid); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else {
|
} else {
|
||||||
return team.GetMembers()
|
return team, nil
|
||||||
}
|
}
|
||||||
} else if len(args) == 0 {
|
} else if len(args) == 0 {
|
||||||
// List all teams
|
// List all teams
|
||||||
|
Loading…
Reference in New Issue
Block a user