summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index 3ce23ef2ed..dbd4f12b8a 100644
--- a/models/user.go
+++ b/models/user.go
@@ -468,7 +468,7 @@ func (u *User) isVisibleToUser(e db.Engine, viewer *User) bool {
}
// Now we need to check if they in some organization together
- count, err := db.GetEngine(db.DefaultContext).Table("team_user").
+ count, err := e.Table("team_user").
Where(
builder.And(
builder.Eq{"uid": viewer.ID},