3
0

Fix improper auth context when processing automation scripts

This commit is contained in:
Tomaž Jerman
2021-10-07 10:47:54 +02:00
parent 5fba7b5acd
commit 5acd267470
+5 -2
View File
@@ -459,8 +459,11 @@ func (app *CortezaApp) Activate(ctx context.Context) (err error) {
}
// Load corredor scripts & init watcher (script reloader)
corredor.Service().Load(ctx)
corredor.Service().Watch(ctx)
{
ctx := auth.SetIdentityToContext(ctx, auth.ServiceUser())
corredor.Service().Load(ctx)
corredor.Service().Watch(ctx)
}
sysService.Watchers(ctx)
autService.Watchers(ctx)