mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-12 21:16:14 +01:00
Fix listing team members (#3048)
This commit is contained in:
parent
13216c5c20
commit
3c0c7a9f83
1 changed files with 3 additions and 1 deletions
|
@ -484,6 +484,8 @@ WHERE team_user.org_id = ? AND team_user.uid = ?`,
|
|||
return fmt.Errorf("get teams: %v", err)
|
||||
}
|
||||
|
||||
org.Teams = teams
|
||||
|
||||
// FIXME: should I change this value inside method,
|
||||
// or only in location of caller where it's really needed?
|
||||
org.NumTeams = len(org.Teams)
|
||||
|
|
Loading…
Reference in a new issue