Hide setup key from non-admin users (#539)

This commit is contained in:
Misha Bragin
2022-11-03 17:02:31 +01:00
committed by GitHub
parent 2e0bf61e9a
commit 6aa7a2c5e1
5 changed files with 48 additions and 12 deletions

View File

@ -23,7 +23,7 @@ func APIHandler(accountManager s.AccountManager, authIssuer string, authAudience
corsMiddleware := cors.AllowAll()
acMiddleware := middleware.NewAccessControll(
acMiddleware := middleware.NewAccessControl(
authAudience,
accountManager.IsUserAdmin)