Sharing: ACL authorization for REST API #18

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer
2020-06-25 14:54:04 +02:00
parent 1f1f92408a
commit 5d59b50912
88 changed files with 1378 additions and 957 deletions

View File

@@ -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()})
}