mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 05:53:15 +08:00

* Unexport store and create new constructor function * Add ResourceAuthorizer and LegacyAccessClient * Configure checks for user store * List with checks if AccessClient is configured * Allow system user service account to read all users --------- Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
8 lines
222 B
SQL
8 lines
222 B
SQL
SELECT u.id
|
|
FROM {{ .Ident .UserTable }} as u
|
|
INNER JOIN {{ .Ident .OrgUserTable }} as o ON u.id = o.user_id
|
|
WHERE o.org_id = {{ .Arg .Query.OrgID }}
|
|
AND u.uid = {{ .Arg .Query.UID }}
|
|
AND NOT u.is_service_account
|
|
LIMIT 1;
|