-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SECURITY SOLUTION] [CASES] Allow cases to be there when security sol…
…utions privileges is none (#113573) * allow case to itself when security solutions privileges is none * bring back the right owner for cases * bring no privilege msg when needed it * fix types * fix test * adding test * review * deepLinks generation fixed * register home solution with old app id * fix get deep links * fix home link * fix unit test * add test * fix telemetry Co-authored-by: semd <sergi.massaneda@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
- Loading branch information
1 parent
1061835
commit 436c74a
Showing
82 changed files
with
800 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
x-pack/plugins/security_solution/public/app/no_privileges.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import React, { useMemo } from 'react'; | ||
|
||
import { EuiPageTemplate } from '@elastic/eui'; | ||
import { SecuritySolutionPageWrapper } from '../common/components/page_wrapper'; | ||
import { EmptyPage } from '../common/components/empty_page'; | ||
import { useKibana } from '../common/lib/kibana'; | ||
import * as i18n from './translations'; | ||
|
||
interface NoPrivilegesPageProps { | ||
subPluginKey: string; | ||
} | ||
|
||
export const NoPrivilegesPage = React.memo<NoPrivilegesPageProps>(({ subPluginKey }) => { | ||
const { docLinks } = useKibana().services; | ||
const emptyPageActions = useMemo( | ||
() => ({ | ||
feature: { | ||
icon: 'documents', | ||
label: i18n.GO_TO_DOCUMENTATION, | ||
url: `${docLinks.links.siem.privileges}`, | ||
target: '_blank', | ||
}, | ||
}), | ||
[docLinks] | ||
); | ||
return ( | ||
<SecuritySolutionPageWrapper> | ||
<EuiPageTemplate template="centeredContent"> | ||
<EmptyPage | ||
actions={emptyPageActions} | ||
message={i18n.NO_PERMISSIONS_MSG(subPluginKey)} | ||
data-test-subj="no_feature_permissions-alerts" | ||
title={i18n.NO_PERMISSIONS_TITLE} | ||
/> | ||
</EuiPageTemplate> | ||
</SecuritySolutionPageWrapper> | ||
); | ||
}); | ||
|
||
NoPrivilegesPage.displayName = 'NoPrivilegePage'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.