The Free Software Media System - Server Backend & API
Use the username for the user config path
Joshua M. Bonifaced1d0ddf62f75
diff --git a/MediaBrowser.Controller/Entities/User.cs b/MediaBrowser.Controller/Entities/User.csindex 0d5f508dd6..9952ba418b 100644--- a/MediaBrowser.Controller/Entities/User.cs+++ b/MediaBrowser.Controller/Entities/User.cs@@ -228,7 +228,15 @@ namespace MediaBrowser.Controller.Entitiesreturn System.IO.Path.Combine(ConfigurationManager.ApplicationPaths.UserConfigurationDirectoryPath, safeFolderName);}- return System.IO.Path.Combine(parentPath, Id.ToString("N"));+ // TODO: Remove idPath and just use usernamePath for future releases+ var usernamePath = System.IO.Path.Combine(parentPath, username);+ var idPath = System.IO.Path.Combine(parentPath, Id.ToString("N"));+ if (!Directory.Exists(usernamePath) && Directory.Exists(idPath))+ {+ Directory.Move(idPath, usernamePath);+ }++ return usernamePath;}public bool IsParentalScheduleAllowed()