3
0

Add elevated permissions to svc activate step

This commit is contained in:
Tomaž Jerman
2023-06-25 15:20:57 +02:00
parent c1241cf8a8
commit 71d3cf6518

View File

@@ -475,6 +475,8 @@ func (app *CortezaApp) Activate(ctx context.Context) (err error) {
ctx = actionlog.RequestOriginToContext(ctx, actionlog.RequestOrigin_APP_Activate)
defer sentry.Recover()
ctx = auth.SetIdentityToContext(ctx, auth.ServiceUser())
// Start scheduler
if app.Opt.Eventbus.SchedulerEnabled {
scheduler.Service().Start(ctx)