Fix to signed in user when user <-> org link is gone
This commit is contained in:
1 parent
bfe6d5434e
commit
bf9e51928d
1 file changed
+5
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user