Просмотр исходного кода

fix(app): gate config permission auto-accept (#38650)

Brendan Allan 3 недель назад
Родитель
Сommit
67a04787bf
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      packages/app/src/context/permission.tsx

+ 1 - 0
packages/app/src/context/permission.tsx

@@ -212,6 +212,7 @@ function createServerPermissionState(input: { sdk: ServerSDK; sync: ServerSync }
   )
 
   function enableConfiguredDirectory(directory: string) {
+    if (input.sdk.protocolKind() !== "v1") return
     if (meta.disposed || !ready()) return
     const [childStore] = input.sync.child(directory)
     if (childStore.config.permission !== "allow") return