mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-05 03:58:28 +02:00
make sure units of a team are returned (#6379)
This commit is contained in:
1 parent
359d3ed01d
commit
5c82ef098e
2 files changed
+10
No files matched your search
@@ -33,6 +33,11 @@ type Team struct {
|
||||
Units []*TeamUnit `xorm:"-"`
|
||||
}
|
||||
|
||||
// GetUnits return a list of available units for a team
|
||||
func (t *Team) GetUnits() error {
|
||||
return t.getUnits(x)
|
||||
}
|
||||
|
||||
func (t *Team) getUnits(e Engine) (err error) {
|
||||
if t.Units != nil {
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user