瀏覽代碼

Change fileprotectiontype from completeUntilFirstUserAuthentication to none

Deniz Cengiz 1 年之前
父節點
當前提交
28b6004705
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Trio/Sources/Helpers/PropertyWrappers/PersistedProperty.swift

+ 2 - 2
Trio/Sources/Helpers/PropertyWrappers/PersistedProperty.swift

@@ -102,7 +102,7 @@ import Foundation
 
                 // Ensure appropriate protection level
                 try FileManager.default.setAttributes(
-                    [.protectionKey: FileProtectionType.completeUntilFirstUserAuthentication],
+                    [.protectionKey: FileProtectionType.none],
                     ofItemAtPath: storageURL.path
                 )
 
@@ -146,7 +146,7 @@ enum FileProtectionFixer {
 
             do {
                 try fileManager.setAttributes(
-                    [.protectionKey: FileProtectionType.completeUntilFirstUserAuthentication],
+                    [.protectionKey: FileProtectionType.none],
                     ofItemAtPath: fileURL.path
                 )
                 debug(.storage, "✅ Updated protection for \(fileName)")