Skip to content

Commit

Permalink
Fix create/createComment with v1
Browse files Browse the repository at this point in the history
  • Loading branch information
kqualters-elastic committed Nov 13, 2024
1 parent c307b1c commit 45cd5dd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export const getCasesBaseKibanaFeature = ({
create: [APP_ID],
read: [APP_ID],
update: [APP_ID],
createComment: [APP_ID],
reopenCase: [APP_ID],
},
savedObject: {
all: [...savedObjects.files],
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/cases/server/features/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export const getV1 = (): KibanaFeatureConfig => {
read: [APP_ID],
update: [APP_ID],
push: [APP_ID],
createComment: [APP_ID],
reopenCase: [APP_ID],
},
management: {
insightsAndAlerting: [APP_ID],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ export const getCasesFeature = (
read: [observabilityFeatureId],
update: [observabilityFeatureId],
push: [observabilityFeatureId],
createComment: [observabilityFeatureId],
reopenCase: [observabilityFeatureId],
},
savedObject: {
all: [...filesSavedObjectTypes],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export const getCasesFeatureV2 = (
groupType: 'independent',
privileges: [
{
api: casesApiTags.createComment,
id: 'create_comment',
name: i18n.translate(
'xpack.observability.featureRegistry.addCommentsSubFeatureDetails',
Expand Down

0 comments on commit 45cd5dd

Please sign in to comment.