Skip to content

Commit

Permalink
[Fleet] Fix permissions in integrations Assets page (#161233)
Browse files Browse the repository at this point in the history
Fixes #161058

## Summary
Fix permissions for Integrations assets tab. A user with role "Fleet All
- Integration Read" wasn't able to visualize the assets tab.

### Test

- Create a user with "Fleet All - Integration Read" as shown in this
video:


https://github.com/elastic/kibana/assets/16084106/a13c6ddd-a3d1-4e15-9c9d-9d56e1dbb0f0

- Log in with this new user
- Navigate to any installed integration, then to the Assets tab
- Verify that the assets are shown as usual (no warnings are shown)

<img width="2556" alt="Screenshot 2023-07-05 at 10 22 36"
src="https://github.com/elastic/kibana/assets/16084106/b050d7ee-3794-41c4-b429-50eb6291697a">
  • Loading branch information
criamico authored Jul 5, 2023
1 parent 0b13a84 commit 38b487a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const AssetsPage = ({ packageInfo }: AssetsPanelProps) => {
const { spaces } = useStartServices();
const customAssetsExtension = useUIExtension(packageInfo.name, 'package-detail-assets');

const canReadPackageSettings = useAuthz().integrations.readPackageSettings;
const canReadPackageSettings = useAuthz().integrations.readPackageInfo;

const { getPath } = useLink();
const getPackageInstallStatus = useGetPackageInstallStatus();
Expand Down

0 comments on commit 38b487a

Please sign in to comment.