ux: making org visibile in profile view

This commit is contained in:
Torkel Ödegaard
2017-08-16 15:03:49 +02:00
parent 7f0f0eb617
commit 95f5c84a57
12 changed files with 221 additions and 103 deletions

View File

@@ -350,6 +350,7 @@ func GetSignedInUser(query *m.GetSignedInUserQuery) error {
u.name as name,
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,
org.name as org_name,
org_user.role as org_role,
org.id as org_id