Преглед на файлове

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
                 // 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)")