|
@@ -80,7 +80,7 @@ class FileProviderExtension: NSFileProviderExtension, NCNetworkingDelegate {
|
|
throw NSError(domain: NSFileProviderErrorDomain, code: NSFileProviderError.notAuthenticated.rawValue, userInfo: [:])
|
|
throw NSError(domain: NSFileProviderErrorDomain, code: NSFileProviderError.notAuthenticated.rawValue, userInfo: [:])
|
|
} else if NCKeychain().passcode != nil, NCKeychain().requestPasscodeAtStart {
|
|
} else if NCKeychain().passcode != nil, NCKeychain().requestPasscodeAtStart {
|
|
throw NSError(domain: NSFileProviderErrorDomain, code: NSFileProviderError.notAuthenticated.rawValue, userInfo: ["code": NSNumber(value: NCGlobal.shared.errorUnauthorizedFilesPasscode)])
|
|
throw NSError(domain: NSFileProviderErrorDomain, code: NSFileProviderError.notAuthenticated.rawValue, userInfo: ["code": NSNumber(value: NCGlobal.shared.errorUnauthorizedFilesPasscode)])
|
|
- } else if CCUtility.getDisableFilesApp() || NCBrandOptions.shared.disable_openin_file {
|
|
|
|
|
|
+ } else if NCKeychain().disableFilesApp || NCBrandOptions.shared.disable_openin_file {
|
|
throw NSError(domain: NSFileProviderErrorDomain, code: NSFileProviderError.notAuthenticated.rawValue, userInfo: ["code": NSNumber(value: NCGlobal.shared.errorDisableFilesApp)])
|
|
throw NSError(domain: NSFileProviderErrorDomain, code: NSFileProviderError.notAuthenticated.rawValue, userInfo: ["code": NSNumber(value: NCGlobal.shared.errorDisableFilesApp)])
|
|
}
|
|
}
|
|
}
|
|
}
|