mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Updated IndexerSettingsModel with better descriptions.
Enable checkbox for Indexer is now labeled as such. Removed jscript load for deleted script. A user will now be unable to add a rootDir if the SabDropDir value is the same (ignoring case). A user will also be unable to set their SabDropDir to the same value as an exiting RootDir (Ignoring case). The last two changes prevent users from possibly causing all TV shows to be deleted.
This commit is contained in:
@@ -153,6 +153,10 @@ namespace NzbDrone.Web.Controllers
|
||||
if (String.IsNullOrWhiteSpace(path))
|
||||
return new JsonResult { Data = "failed" };
|
||||
|
||||
//Don't let a user add a rootDir that is the same as their SABnzbd TV Directory
|
||||
if (path.Equals(_configProvider.SabDropDirectory, StringComparison.InvariantCultureIgnoreCase))
|
||||
return new JsonResult { Data = "failed" };
|
||||
|
||||
try
|
||||
{
|
||||
_rootFolderProvider.Add(new RootDir { Path = path });
|
||||
|
Reference in New Issue
Block a user