We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f50e98 commit 0bac822Copy full SHA for 0bac822
models/group/group_team.go
@@ -34,6 +34,7 @@ func (g *RepoGroupTeam) UnitAccessModeEx(ctx context.Context, tp unit.Type) (acc
34
accessMode = perm.AccessModeNone
35
if err := g.LoadGroupUnits(ctx); err != nil {
36
log.Warn("Error loading units of team for group[%d] (ID: %d): %s", g.GroupID, g.TeamID, err.Error())
37
+ return accessMode, false
38
}
39
for _, u := range g.Units {
40
if u.Type == tp {
0 commit comments