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:
@@ -6,9 +6,9 @@ import (
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"github.com/photoprism/photoprism/internal/acl"
|
||||
"github.com/photoprism/photoprism/internal/get"
|
||||
"github.com/photoprism/photoprism/internal/i18n"
|
||||
"github.com/photoprism/photoprism/internal/query"
|
||||
"github.com/photoprism/photoprism/internal/service"
|
||||
"github.com/photoprism/photoprism/pkg/txt"
|
||||
)
|
||||
|
||||
@@ -46,7 +46,7 @@ func GetErrors(router *gin.RouterGroup) {
|
||||
// DELETE /api/v1/errors
|
||||
func DeleteErrors(router *gin.RouterGroup) {
|
||||
router.DELETE("/errors", func(c *gin.Context) {
|
||||
conf := service.Config()
|
||||
conf := get.Config()
|
||||
|
||||
// Disabled in public mode so that attackers cannot cover their tracks.
|
||||
if conf.Public() {
|
||||
|
||||
Reference in New Issue
Block a user