File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed
x-pack/plugins/cases/server/routes/api Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 55 * 2.0.
66 */
77
8- import { CASE_CONFIGURE_CONNECTORS_URL } from '../../../../common/constants' ;
8+ import {
9+ CASE_CONFIGURE_CONNECTORS_URL ,
10+ GET_CONNECTORS_CONFIGURE_API_TAG ,
11+ } from '../../../../common/constants' ;
912import { createCaseError } from '../../../common/error' ;
1013import { createCasesRoute } from '../create_cases_route' ;
1114
@@ -15,8 +18,13 @@ import { createCasesRoute } from '../create_cases_route';
1518export const getConnectorsRoute = createCasesRoute ( {
1619 method : 'get' ,
1720 path : `${ CASE_CONFIGURE_CONNECTORS_URL } /_find` ,
21+ security : {
22+ authz : {
23+ requiredPrivileges : [ GET_CONNECTORS_CONFIGURE_API_TAG ] ,
24+ } ,
25+ } ,
1826 routerOptions : {
19- tags : [ 'access:casesGetConnectorsConfigure' , ' oas-tag:cases'] ,
27+ tags : [ 'oas-tag:cases' ] ,
2028 access : 'public' ,
2129 summary : 'Get case connectors' ,
2230 description : 'Retrieves information about connectors that are supported for use in cases.' ,
Original file line number Diff line number Diff line change 77
88import type { KibanaRequest } from '@kbn/core-http-server' ;
99import type { UserProfileService } from '../../../services' ;
10- import { INTERNAL_SUGGEST_USER_PROFILES_URL } from '../../../../common/constants' ;
10+ import {
11+ INTERNAL_SUGGEST_USER_PROFILES_URL ,
12+ SUGGEST_USER_PROFILES_API_TAG ,
13+ } from '../../../../common/constants' ;
1114import { createCaseError } from '../../../common/error' ;
1215import { createCasesRoute } from '../create_cases_route' ;
1316import { escapeHatch } from '../utils' ;
@@ -17,8 +20,12 @@ export const suggestUserProfilesRoute = (userProfileService: UserProfileService)
1720 createCasesRoute ( {
1821 method : 'post' ,
1922 path : INTERNAL_SUGGEST_USER_PROFILES_URL ,
23+ security : {
24+ authz : {
25+ requiredPrivileges : [ SUGGEST_USER_PROFILES_API_TAG ] ,
26+ } ,
27+ } ,
2028 routerOptions : {
21- tags : [ 'access:casesSuggestUserProfiles' ] ,
2229 access : 'internal' ,
2330 } ,
2431 params : {
You can’t perform that action at this time.
0 commit comments