From 5db93bb731e1f16cf93d65451582de0b6498b5bd Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Tue, 31 Aug 2021 13:34:29 +0200 Subject: [PATCH] People: Abort marker API request if feature is disabled #22 --- internal/api/marker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/marker.go b/internal/api/marker.go index bc767e7d4..328a0fd09 100644 --- a/internal/api/marker.go +++ b/internal/api/marker.go @@ -26,7 +26,7 @@ func findFileMarker(c *gin.Context) (file entity.File, marker entity.Marker, err conf := service.Config() - if !conf.Settings().Features.Edit { + if !conf.Settings().Features.People || !conf.Settings().Features.Edit { AbortFeatureDisabled(c) return file, marker, err }