mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) have user.Name come from database for websocket users
Summary: The name of a user for actions made using a websocket until now could be inconsistent with that seen by other means. This draws the name from the database, rather than from session information that may have been cached from an identity provider. Test Plan: added test Reviewers: dsagal Reviewed By: dsagal Subscribers: dsagal Differential Revision: https://phab.getgrist.com/D3379
This commit is contained in:
@@ -819,12 +819,13 @@ export class FlexServer implements GristServer {
|
||||
}
|
||||
|
||||
public addComm() {
|
||||
if (this._check('comm', 'start')) { return; }
|
||||
if (this._check('comm', 'start', 'homedb')) { return; }
|
||||
this._comm = new Comm(this.server, {
|
||||
settings: this.settings,
|
||||
sessions: this._sessions,
|
||||
hosts: this._hosts,
|
||||
httpsServer: this.httpsServer,
|
||||
dbManager: this._dbManager,
|
||||
});
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user