Ver código fonte

Change fileprotectiontype from completeUntilFirstUserAuthentication to none

Deniz Cengiz 1 ano atrás
pai
commit
28b6004705

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

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