diff --git a/common/token.go b/common/token.go index d5809c5..4d313a7 100644 --- a/common/token.go +++ b/common/token.go @@ -19,5 +19,5 @@ func (t Token) OnlyUserPublic(userManagerSeesEverything bool) string { return "1" } // It's safe to use sprintf directly even if it's a query, because UserID is an int. - return fmt.Sprintf("(user.privileges & 1 = 1 OR users.id = '%d')", t.UserID) + return fmt.Sprintf("(users.privileges & 1 = 1 OR users.id = '%d')", t.UserID) }