mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Add ws id and doc name params to POST /docs (#655)
This commit is contained in:
@@ -492,7 +492,7 @@ export class ApiServer {
|
||||
// Sets active user for active org
|
||||
this._app.post('/api/session/access/active', expressWrap(async (req, res) => {
|
||||
const mreq = req as RequestWithLogin;
|
||||
let domain = optStringParam(req.body.org);
|
||||
let domain = optStringParam(req.body.org, 'org');
|
||||
if (!domain || domain === 'current') {
|
||||
domain = getOrgFromRequest(mreq) || '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user