mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
fix: getting orgs without verifying scope
This commit is contained in:
parent
013e94e470
commit
1a89799192
@ -2034,9 +2034,8 @@ export class HomeDBManager extends EventEmitter {
|
|||||||
const orgId = ws.org.id;
|
const orgId = ws.org.id;
|
||||||
let orgQuery = this._buildOrgWithACLRulesQuery(scope, orgId, options);
|
let orgQuery = this._buildOrgWithACLRulesQuery(scope, orgId, options);
|
||||||
orgQuery = this._addFeatures(orgQuery);
|
orgQuery = this._addFeatures(orgQuery);
|
||||||
const orgQueryResult = await verifyEntity(orgQuery);
|
const orgQueryResult = await orgQuery.getRawAndEntities();
|
||||||
const org: Organization = orgQueryResult.data;
|
const org: Organization = orgQueryResult.entities[0];
|
||||||
|
|
||||||
// Get all the non-guest groups on the org.
|
// Get all the non-guest groups on the org.
|
||||||
const orgGroups = getNonGuestGroups(org);
|
const orgGroups = getNonGuestGroups(org);
|
||||||
// Get all the non-guest groups to be updated by the delta.
|
// Get all the non-guest groups to be updated by the delta.
|
||||||
|
Loading…
Reference in New Issue
Block a user