mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix to signed in user when user <-> org link is gone
This commit is contained in:
parent
bfe6d5434e
commit
bf9e51928d
@ -283,6 +283,11 @@ func GetSignedInUser(query *m.GetSignedInUserQuery) error {
|
||||
return m.ErrUserNotFound
|
||||
}
|
||||
|
||||
if user.OrgRole == "" {
|
||||
user.OrgId = -1
|
||||
user.OrgName = "Org missing"
|
||||
}
|
||||
|
||||
query.Result = &user
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user