fix: bug where disabled didnt disable the use of service account (#47688) (#47725)

(cherry picked from commit 673a2ab49e)

Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2022-04-13 18:47:08 +02:00
committed by GitHub
co-authored by Eric Leijonmarck
parent 67d42fc51c
commit 5332a2db05
3 changed files with 15 additions and 6 deletions
+1
View File
@@ -535,6 +535,7 @@ func (ss *SQLStore) GetSignedInUser(ctx context.Context, query *models.GetSigned
u.email as email,
u.login as login,
u.name as name,
u.is_disabled as is_disabled,
u.help_flags1 as help_flags1,
u.last_seen_at as last_seen_at,
(SELECT COUNT(*) FROM org_user where org_user.user_id = u.id) as org_count,