Auth: Refactor users path configuration and base path default

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2023-03-14 21:47:14 +01:00
parent 3755421945
commit addc5e8251
12 changed files with 78 additions and 27 deletions

View File

@@ -80,6 +80,7 @@ func StartImport(router *gin.RouterGroup) {
RemoveFromFolderCache(entity.RootImport)
// Get destination folder.
var destFolder string
if destFolder = s.User().GetUploadPath(); destFolder == "" {
destFolder = conf.ImportDest()