summaryrefslogtreecommitdiffstats
path: root/models/userlist.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/userlist.go')
-rw-r--r--models/userlist.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/userlist.go b/models/userlist.go
index 43838a6804..a2a4248482 100644
--- a/models/userlist.go
+++ b/models/userlist.go
@@ -43,7 +43,7 @@ func (users UserList) loadOrganizationOwners(e Engine, orgID int64) (map[int64]*
}
ownerTeam, err := getOwnerTeam(e, orgID)
if err != nil {
- if err == ErrTeamNotExist {
+ if IsErrTeamNotExist(err) {
log.Error("Organization does not have owner team: %d", orgID)
return nil, nil
}