fix: handle logout correctly on tokens (#1809)

This commit is contained in:
Livio Amstutz 2021-06-03 08:37:58 +02:00 committed by GitHub
parent a107bb5fd9
commit 3dba12c0d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ func (t *TokenView) AppendEventIfMyToken(event *es_models.Event) (err error) {
if err != nil {
return err
}
if view.UserAgentID == id {
if t.UserAgentID == id {
t.Deactivated = true
}
return nil