mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Also improves migrations and updates the db schema docs. Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -7,8 +7,8 @@ import (
|
||||
|
||||
"github.com/photoprism/photoprism/internal/acl"
|
||||
"github.com/photoprism/photoprism/internal/form"
|
||||
"github.com/photoprism/photoprism/internal/get"
|
||||
"github.com/photoprism/photoprism/internal/i18n"
|
||||
"github.com/photoprism/photoprism/internal/service"
|
||||
"github.com/photoprism/photoprism/pkg/clean"
|
||||
)
|
||||
|
||||
@@ -39,7 +39,7 @@ func Connect(router *gin.RouterGroup) {
|
||||
return
|
||||
}
|
||||
|
||||
conf := service.Config()
|
||||
conf := get.Config()
|
||||
|
||||
if conf.Public() {
|
||||
Abort(c, http.StatusForbidden, i18n.ErrPublic)
|
||||
|
||||
Reference in New Issue
Block a user