Skip to content

Commit

Permalink
[8.0] [Fleet] Add base Fleet authz logic and API (#119199) (#119848)
Browse files Browse the repository at this point in the history
* [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 <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
# Conflicts:
#	x-pack/plugins/fleet/storybook/context/index.tsx

* Fix missing import

Co-authored-by: Josh Dover <[email protected]>
  • Loading branch information
criamico and joshdover authored Nov 29, 2021
1 parent 6726ef4 commit 32bcf31
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x-pack/plugins/fleet/storybook/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -69,6 +70,9 @@ export const StorybookContext: React.FC<{ storyContext?: StoryContext }> = ({
notifications: getNotifications(),
share: getShare(),
uiSettings: getUiSettings(),
theme: {
theme$: EMPTY,
},
authz: {
fleet: {
all: true,
Expand Down

0 comments on commit 32bcf31

Please sign in to comment.