File tree 1 file changed +5
-9
lines changed 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -157,14 +157,6 @@ func New(options *Options) *API {
157
157
options = & Options {}
158
158
}
159
159
experiments := initExperiments (options .Logger , options .DeploymentConfig .Experiments .Value , options .DeploymentConfig .Experimental .Value )
160
- // TODO: remove this once we promote authz_querier out of experiments.
161
- if experiments .Enabled (codersdk .ExperimentAuthzQuerier ) {
162
- options .Database = dbauthz .New (
163
- options .Database ,
164
- options .Authorizer ,
165
- options .Logger .Named ("authz_query" ),
166
- )
167
- }
168
160
if options .AppHostname != "" && options .AppHostnameRegex == nil || options .AppHostname == "" && options .AppHostnameRegex != nil {
169
161
panic ("coderd: both AppHostname and AppHostnameRegex must be set or unset" )
170
162
}
@@ -207,7 +199,11 @@ func New(options *Options) *API {
207
199
}
208
200
// TODO: remove this once we promote authz_querier out of experiments.
209
201
if experiments .Enabled (codersdk .ExperimentAuthzQuerier ) {
210
- options .Database = dbauthz .New (options .Database , options .Authorizer , options .Logger .Named ("authz_querier" ))
202
+ options .Database = dbauthz .New (
203
+ options .Database ,
204
+ options .Authorizer ,
205
+ options .Logger .Named ("authz_querier" ),
206
+ )
211
207
}
212
208
if options .SetUserGroups == nil {
213
209
options .SetUserGroups = func (context.Context , database.Store , uuid.UUID , []string ) error { return nil }
You can’t perform that action at this time.
0 commit comments