mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Hide tips in grist-core
Summary: Also fixes a deployment test failure in staging due to a test util throwing a (harmless) error. Test Plan: Tested manually. Reviewers: jarek Reviewed By: jarek Differential Revision: https://phab.getgrist.com/D3740
This commit is contained in:
@@ -439,7 +439,10 @@ export class HomeUtil {
|
||||
}
|
||||
|
||||
private async _toggleTips(enabled: boolean, email: string) {
|
||||
if (this.server.isExternalServer()) { throw new Error('not supported'); }
|
||||
if (this.server.isExternalServer()) {
|
||||
// Unsupported due to lack of access to the database.
|
||||
return;
|
||||
}
|
||||
|
||||
const dbManager = await this.server.getDatabase();
|
||||
const user = await dbManager.getUserByLogin(email);
|
||||
|
||||
Reference in New Issue
Block a user