Set server.PermsSyncer on enterprise repo-updater (#46494)

This commit is contained in:
Petri-Johan Last 2023-01-16 13:09:17 +02:00 committed by GitHub
parent ee4d98abe3
commit 0ca10ac62c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,10 @@ func EnterpriseInit(
return nil
}
if server != nil {
server.PermsSyncer = permsSyncer
}
workerStore := authz.MakeStore(observationCtx, db.Handle())
worker := authz.MakeWorker(ctx, observationCtx, workerStore, permsSyncer)
resetter := authz.MakeResetter(observationCtx, workerStore)