Preferences: Add read-only APIServer for preferences and dashboard stars (#106109)

This commit is contained in:
Ryan McKinley
2025-08-28 19:51:32 +03:00
committed by GitHub
parent 05c52936a8
commit 43648d20c3
81 changed files with 3178 additions and 25 deletions
@@ -0,0 +1,9 @@
SELECT t.uid FROM {{ .Ident .TeamMemberTable }} as tm
JOIN {{ .Ident .UserTable }} as u ON tm.user_id = u.id
JOIN {{ .Ident .TeamTable }} as t ON tm.team_id = t.id
WHERE tm.org_id = {{ .Arg .OrgID }}
AND u.uid = {{ .Arg .UserUID }}
{{ if .IsAdmin }}
AND tm.permission = 4
{{ end }}
ORDER BY t.id