mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Config: Move Portal flag to ClientConfig struct
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -31,7 +31,7 @@ func ClusterSummary(router *gin.RouterGroup) {
|
||||
|
||||
conf := get.Config()
|
||||
|
||||
if !conf.IsPortal() {
|
||||
if !conf.Portal() {
|
||||
AbortFeatureDisabled(c)
|
||||
return
|
||||
}
|
||||
@@ -73,7 +73,7 @@ func ClusterHealth(router *gin.RouterGroup) {
|
||||
c.Header(header.AccessControlAllowOrigin, header.Any)
|
||||
|
||||
// Return error if not a portal node.
|
||||
if !conf.IsPortal() {
|
||||
if !conf.Portal() {
|
||||
AbortFeatureDisabled(c)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user