mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
fix: refresh entitlements after creating first user (#12285)
This commit is contained in:
@ -203,6 +203,9 @@ func New(ctx context.Context, options *Options) (_ *API, err error) {
|
||||
})
|
||||
})
|
||||
})
|
||||
api.AGPL.RefreshEntitlements = func(ctx context.Context) error {
|
||||
return api.refreshEntitlements(ctx)
|
||||
}
|
||||
|
||||
api.AGPL.APIHandler.Group(func(r chi.Router) {
|
||||
r.Get("/entitlements", api.serveEntitlements)
|
||||
|
Reference in New Issue
Block a user