mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Sharing: ACL authorization for REST API #18
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
@@ -32,8 +32,8 @@ https://docs.photoprism.org/developer-guide/
|
||||
package api
|
||||
|
||||
import (
|
||||
"github.com/photoprism/photoprism/internal/config"
|
||||
"github.com/photoprism/photoprism/internal/event"
|
||||
"github.com/photoprism/photoprism/internal/service"
|
||||
)
|
||||
|
||||
var log = event.Log
|
||||
@@ -44,6 +44,8 @@ func logError(prefix string, err error) {
|
||||
}
|
||||
}
|
||||
|
||||
func UpdateClientConfig(conf *config.Config) {
|
||||
func UpdateClientConfig() {
|
||||
conf := service.Config()
|
||||
|
||||
event.Publish("config.updated", event.Data{"config": conf.UserConfig()})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user