Auth: Session and ACL enhancements #98 #1746

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2022-09-28 09:01:17 +02:00
parent 8be80aec49
commit f5a8c5a45d
386 changed files with 10403 additions and 5316 deletions

View File

@@ -42,6 +42,7 @@ func cleanUpAction(ctx *cli.Context) error {
}
conf.InitDb()
defer conf.Shutdown()
if conf.ReadOnly() {
log.Infof("config: read-only mode enabled")
@@ -60,7 +61,5 @@ func cleanUpAction(ctx *cli.Context) error {
log.Infof("removed %s in %s", english.Plural(total, "file", "files"), time.Since(cleanupStart))
}
conf.Shutdown()
return nil
}