Fix improper auth context when processing automation scripts
This commit is contained in:
+5
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user