@@ -100,7 +100,6 @@ class ConfigController extends Controller {
100
100
] ,
101
101
} ) ;
102
102
103
- // TODO: deprecate when removing `granularAdminPermissions` flag
104
103
this . route ( {
105
104
method : 'post' ,
106
105
path : '' ,
@@ -111,10 +110,11 @@ class ConfigController extends Controller {
111
110
tags : [ 'Admin UI' ] ,
112
111
summary : 'Set UI configuration' ,
113
112
description :
114
- 'Sets the UI configuration for this Unleash instance.' ,
113
+ 'Deprecated. Use `./cors` instead. Sets the UI configuration for this Unleash instance.' ,
115
114
operationId : 'setUiConfig' ,
116
115
requestBody : createRequestSchema ( 'setUiConfigSchema' ) ,
117
116
responses : { 200 : emptyResponse } ,
117
+ deprecated : true ,
118
118
} ) ,
119
119
] ,
120
120
} ) ;
@@ -222,14 +222,6 @@ class ConfigController extends Controller {
222
222
req : IAuthRequest < void , void , SetCorsSchema > ,
223
223
res : Response < string > ,
224
224
) : Promise < void > {
225
- const granularAdminPermissions = this . flagResolver . isEnabled (
226
- 'granularAdminPermissions' ,
227
- ) ;
228
-
229
- if ( ! granularAdminPermissions ) {
230
- throw new NotFoundError ( ) ;
231
- }
232
-
233
225
if ( req . body . frontendApiOrigins ) {
234
226
await this . frontendApiService . setFrontendCorsSettings (
235
227
req . body . frontendApiOrigins ,
0 commit comments