fetchTrackersByOwnerName: fix parameter order

access-overhaul 0.65.0
Drew DeVault 1 year ago
parent ffe1c9b652
commit 4ff9d6d2af

@ -293,7 +293,7 @@ func fetchTrackersByOwnerName(ctx context.Context) func(tuples [][2]string) ([]*
THEN ?
ELSE tr.default_access
END)`,
model.ACCESS_ALL, auser.UserID).
auser.UserID, model.ACCESS_ALL).
Where(sq.Or{
sq.Expr(`tr.owner_id = ?`, auser.UserID),
sq.Expr(`tr.visibility != 'PRIVATE'`),

Loading…
Cancel
Save