tenseleyflow/shithub / f2cacca

Browse files

web/wiring: thread BillingEnforce config into profile + repo Deps

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
f2cacca06c4e4adab4abab528bef452a5f8a5466
Parents
1fe08a6
Tree
9312df4

2 changed files

StatusFile+-
M internal/web/profile_wiring.go 8 7
M internal/web/repo_wiring.go 1 0
internal/web/profile_wiring.gomodified
@@ -65,5 +65,6 @@ func buildProfileHandlers(
6565
 		ObjectStore:    objectStore,
6666
 		Limiter:        throttle.NewLimiter(),
6767
 		Audit:          audit.NewRecorder(),
68
+		BillingEnforce: cfg.Billing.Enforce,
6869
 	})
6970
 }
internal/web/repo_wiring.gomodified
@@ -88,5 +88,6 @@ func buildRepoHandlers(
8888
 			SSHEnabled: cfg.Auth.SSH.Enabled,
8989
 			SSHHost:    cfg.Auth.SSH.Host,
9090
 		},
91
+		BillingEnforce: cfg.Billing.Enforce,
9192
 	})
9293
 }