[8.0] [Fleet] Add base Fleet authz logic and API (#119199) (#119848)

* [Fleet] Add base Fleet authz logic and API (#119199)

* Add base Fleet authz logic and API

* Fix linter error

* Fix ts checks

* Fix ts checks again

Co-authored-by: criamico <mariacristina.amico@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
# Conflicts:
#	x-pack/plugins/fleet/storybook/context/index.tsx

* Fix missing import

Co-authored-by: Josh Dover <1813008+joshdover@users.noreply.github.com>
This commit is contained in:
Cristina Amico 2021-11-29 17:40:30 +01:00 committed by GitHub
parent 6726ef4b92
commit 32bcf31aaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,6 +6,7 @@
*/
import React, { useEffect, useMemo, useCallback } from 'react';
import { EMPTY } from 'rxjs';
import type { StoryContext } from '@storybook/react';
import { createBrowserHistory } from 'history';
@ -69,6 +70,9 @@ export const StorybookContext: React.FC<{ storyContext?: StoryContext }> = ({
notifications: getNotifications(),
share: getShare(),
uiSettings: getUiSettings(),
theme: {
theme$: EMPTY,
},
authz: {
fleet: {
all: true,