Config: Move Portal flag to ClientConfig struct

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-10-15 23:32:54 +02:00
parent 0ef0c79766
commit cb9d8d236a
29 changed files with 40 additions and 39 deletions

View File

@@ -86,7 +86,7 @@ func shouldAttemptJWT(c *gin.Context, token string) bool {
// shouldAllowJWT reports whether the current node configuration permits JWT
// authentication for the request originating from clientIP.
func shouldAllowJWT(conf *config.Config, clientIP string) bool {
if conf == nil || conf.IsPortal() {
if conf == nil || conf.Portal() {
return false
}