File tree 1 file changed +7
-4
lines changed 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -159,10 +159,13 @@ func New(options *Options) *API {
159
159
experiments := initExperiments (options .Logger , options .DeploymentConfig .Experiments .Value , options .DeploymentConfig .Experimental .Value )
160
160
// TODO: remove this once we promote authz_querier out of experiments.
161
161
if experiments .Enabled (codersdk .ExperimentAuthzQuerier ) {
162
- panic ("Coming soon!" )
163
- // if _, ok := (options.Database).(*authzquery.AuthzQuerier); !ok {
164
- // options.Database = authzquery.NewAuthzQuerier(options.Database, options.Authorizer)
165
- // }
162
+ if _ , ok := (options .Database ).(* authzquery.AuthzQuerier ); ! ok {
163
+ options .Database = authzquery .New (
164
+ options .Database ,
165
+ options .Authorizer ,
166
+ options .Logger .Named ("authz_query" ),
167
+ )
168
+ }
166
169
}
167
170
if options .AppHostname != "" && options .AppHostnameRegex == nil || options .AppHostname == "" && options .AppHostnameRegex != nil {
168
171
panic ("coderd: both AppHostname and AppHostnameRegex must be set or unset" )
You can’t perform that action at this time.
0 commit comments