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

hide continuous delivery get started btn if user cant create gitrepos #8590

Conversation

mantis-toboggan-md
Copy link
Member

@mantis-toboggan-md mantis-toboggan-md commented Mar 31, 2023

Summary

Fixes #8467 see comment on backport here

Occurred changes and/or fixed issues

Updated the fleet landing page shown when a user has no git repos to hide the 'get started' button when the user can't create git repos.

Technical notes summary

I've updated the permissions property to check available methods on the git repo schema rather than just checking for its existence - though git repos were added to this permission check previously, I don't see them used in the component elsewhere, so this change looks fine to me.

Areas or cases that should be tested

  1. Users with permission to list but not create/edit gitrepos should not see 'get started' button on the fleet landing page

@rak-phillip
Copy link
Member

LGTM - confirmed this change by following repro steps as defined in issue.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Continuous Delivery - User with custom role with access to only list GitRepos can see the Add repo UI elements
2 participants