only allow admins to set global notifications

Signed-off-by: jkoberg <jkoberg@owncloud.com>
This commit is contained in:
jkoberg
2023-07-07 11:06:53 +02:00
parent bca4d4f9fd
commit 6ab2f10386
6 changed files with 73 additions and 3 deletions
+2
View File
@@ -104,6 +104,7 @@ func Server(cfg *config.Config) *cli.Command {
hClient := ehsvc.NewEventHistoryService("com.owncloud.api.eventhistory", ogrpc.DefaultClient())
vClient := settingssvc.NewValueService("com.owncloud.api.settings", ogrpc.DefaultClient())
rClient := settingssvc.NewRoleService("com.owncloud.api.settings", ogrpc.DefaultClient())
{
server, err := http.Server(
@@ -116,6 +117,7 @@ func Server(cfg *config.Config) *cli.Command {
http.GatewaySelector(gatewaySelector),
http.History(hClient),
http.Value(vClient),
http.Role(rClient),
http.RegisteredEvents(_registeredEvents),
)