From ce4c30bbe0dd0a682669040eace5663b2323a33e Mon Sep 17 00:00:00 2001
From: Tobias Markus <tobbi.bugs@googlemail.com>
Date: Mon, 7 Apr 2025 20:21:33 +0200
Subject: [PATCH] Fix compilation with License Manager disabled

---
 .../License Manager/Standalone/TLOLicenseManagerDownloader.m  | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Sources/App/Classes/Library/License Manager/Standalone/TLOLicenseManagerDownloader.m b/Sources/App/Classes/Library/License Manager/Standalone/TLOLicenseManagerDownloader.m
index ef37f1d43..417f1f8dd 100644
--- a/Sources/App/Classes/Library/License Manager/Standalone/TLOLicenseManagerDownloader.m	
+++ b/Sources/App/Classes/Library/License Manager/Standalone/TLOLicenseManagerDownloader.m	
@@ -669,7 +669,11 @@ - (BOOL)populateRequestPostData:(NSMutableURLRequest *)connectionRequest
 
 	NSString *applicationVersion = [TPCApplicationInfo applicationVersion].percentEncodedString;
 
+#if TEXTUAL_BUILT_WITH_LICENSE_MANAGER == 1
 	NSString *authorization = TLOLicenseManagerAuthorizationCode();
+#else
+	NSString *authorization = @"";
+#endif
 
 	NSString *requestBodyString = nil;