Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[manager-components]: fix useOvhIam hook #13174

Closed
3 tasks
chipp972 opened this issue Sep 19, 2024 · 0 comments · Fixed by #13175
Closed
3 tasks

[manager-components]: fix useOvhIam hook #13174

chipp972 opened this issue Sep 19, 2024 · 0 comments · Fixed by #13175
Labels
bug Something isn't working manager-components

Comments

@chipp972
Copy link
Contributor

On which entity, you would like to report a bug?

useOvhIam

Description

Currently the hook considers we are authorized to do an action only if the action list length on the component (ManagerButton, ManagerText) has the same length as the list of authorized actions for the given urn

The problem is that we could have more authorized actions for a given urn than needed for a specific action. We should instead verify if all the needed actions are contained in the list of authorized actions for the given urn.

Steps to reproduce

Use a component ManagerButton with a list of actions smaller than the list of authorized actions for the given urn : the button will stay disabled although we have the authorized actions in the list.

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

@chipp972 chipp972 added bug Something isn't working manager-components labels Sep 19, 2024
@chipp972 chipp972 linked a pull request Sep 19, 2024 that will close this issue
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working manager-components
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants