Preferences: Add read-only APIServer for preferences and dashboard stars (#106109)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user