Database downloads are login-gated

This commit is contained in:
Matt Nadareski
2026-07-26 20:11:05 -04:00
parent b7ac0e15e4
commit d18e9e8f31

View File

@@ -970,6 +970,13 @@ namespace SabreTools.RedumpLib.Web
{
if (Debug) Console.WriteLine($"DEBUG: DownloadDatabase(\"{outDir}\", {subfolder})");
// If the user is not logged in, this is invalid
if (!_loggedIn)
{
Console.Error.WriteLine("Database download requires valid login credentials!");
return false;
}
// Determine the database URL
string dbUri = UrlBuilder.BuildDownloadsUrl(database: true);