We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02ec10f commit c456565Copy full SHA for c456565
packages/cloud/src/bridge/BridgeOrchestrator.ts
@@ -59,7 +59,12 @@ export class BridgeOrchestrator {
59
return BridgeOrchestrator.instance
60
}
61
62
- public static isEnabled(user: CloudUserInfo, remoteControlEnabled: boolean): boolean {
+ public static isEnabled(user: CloudUserInfo | null, remoteControlEnabled: boolean): boolean {
63
+ // Always disabled if signed out.
64
+ if (!user) {
65
+ return false
66
+ }
67
+
68
// Disabled by the user's organization?
69
if (!user.extensionBridgeEnabled) {
70
return false
0 commit comments