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

Add ReviewRequests to User ACL #48536

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Add ReviewRequests to User ACL #48536

merged 1 commit into from
Nov 12, 2024

Conversation

avatus
Copy link
Contributor

@avatus avatus commented Nov 6, 2024

Fixes: #46354
This PR exposes allow.review_requests capabilities in the user ACL.
This is used to conditionally render the "Access Requests" button when
feature hiding is on.

I've added changes to TopBar here even tho its not present in v17 by default, but it will make the backports easier

@github-actions github-actions bot requested review from rudream and ryanclark November 6, 2024 19:07
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-48536.d212ksyjt6y4yg.amplifyapp.com

@public-teleport-github-review-bot public-teleport-github-review-bot bot removed the request for review from codingllama November 6, 2024 22:27
@avatus
Copy link
Contributor Author

avatus commented Nov 6, 2024

whoops, based on wrong branch. no i am not proposing 500k lines change, thank you.

@kimlisa @rudream , can you take another look? i've updated the PR description

@avatus avatus changed the title Hide navigation menu items based on access Add ReviewRequests to User ACL Nov 6, 2024
@avatus avatus requested a review from kimlisa November 6, 2024 22:31
@avatus
Copy link
Contributor Author

avatus commented Nov 12, 2024

friendly ping @kimlisa

Copy link
Contributor

@kimlisa kimlisa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested it and lgtm

This PR exposes `allow.review_requests` capabilities in the user ACL.
This is used to conditionally render the "Access Requests" button when
feature hiding is on.
@avatus avatus force-pushed the avatus/fix_topbar_access branch from 4a4e929 to 095c658 Compare November 12, 2024 15:38
@avatus avatus enabled auto-merge November 12, 2024 15:38
@avatus avatus added the no-changelog Indicates that a PR does not require a changelog entry label Nov 12, 2024
@avatus avatus added this pull request to the merge queue Nov 12, 2024
Merged via the queue into master with commit fa2e416 Nov 12, 2024
43 of 44 checks passed
@avatus avatus deleted the avatus/fix_topbar_access branch November 12, 2024 16:19
@public-teleport-github-review-bot

@avatus See the table below for backport results.

Branch Result
branch/v15 Failed
branch/v16 Failed
branch/v17 Create PR

avatus added a commit that referenced this pull request Dec 4, 2024
oss counterpart for
gravitational/teleport.e#5628

This adds some testing to the view as well as the equivalent to the web
solution for Connect. Connect was missing the [recently
added](#48536)
`ReviewRequests` field in the user ACL, so I added it here.

Because this is handled in the tsh code, we don't have to worry about
backward compatibility here for Connect right?
avatus added a commit that referenced this pull request Dec 5, 2024
oss counterpart for
gravitational/teleport.e#5628

This adds some testing to the view as well as the equivalent to the web
solution for Connect. Connect was missing the [recently
added](#48536)
`ReviewRequests` field in the user ACL, so I added it here.

Because this is handled in the tsh code, we don't have to worry about
backward compatibility here for Connect right?
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
oss counterpart for
gravitational/teleport.e#5628

This adds some testing to the view as well as the equivalent to the web
solution for Connect. Connect was missing the [recently
added](#48536)
`ReviewRequests` field in the user ACL, so I added it here.

Because this is handled in the tsh code, we don't have to worry about
backward compatibility here for Connect right?
github-actions bot pushed a commit that referenced this pull request Dec 9, 2024
oss counterpart for
gravitational/teleport.e#5628

This adds some testing to the view as well as the equivalent to the web
solution for Connect. Connect was missing the [recently
added](#48536)
`ReviewRequests` field in the user ACL, so I added it here.

Because this is handled in the tsh code, we don't have to worry about
backward compatibility here for Connect right?
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
oss counterpart for
gravitational/teleport.e#5628

This adds some testing to the view as well as the equivalent to the web
solution for Connect. Connect was missing the [recently
added](#48536)
`ReviewRequests` field in the user ACL, so I added it here.

Because this is handled in the tsh code, we don't have to worry about
backward compatibility here for Connect right?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Hiding does not render Access Request topbar tab despite having access
3 participants