mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-06 18:06:36 +08:00
Merge pull request #117 from Sagit-chu/opencode/happy-island
fix(backend): restore user tunnel visibility on PostgreSQL
This commit is contained in:
@@ -784,7 +784,7 @@ func (r *Repository) ListUserAccessibleTunnels(userID int64) ([]map[string]inter
|
|||||||
}
|
}
|
||||||
|
|
||||||
rows, err := r.db.Query(`
|
rows, err := r.db.Query(`
|
||||||
SELECT DISTINCT t.id, t.name
|
SELECT t.id, t.name
|
||||||
FROM user_tunnel ut
|
FROM user_tunnel ut
|
||||||
JOIN tunnel t ON t.id = ut.tunnel_id
|
JOIN tunnel t ON t.id = ut.tunnel_id
|
||||||
WHERE ut.user_id = ? AND t.status = 1
|
WHERE ut.user_id = ? AND t.status = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user