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

fix: better seedlot review rbac #1363

Merged
merged 3 commits into from
Jul 9, 2024
Merged

Conversation

craigyu
Copy link
Collaborator

@craigyu craigyu commented Jul 8, 2024

  • only tsc admin can see the review button
  • only seedlot status in 'SUB' can be send back to pending or approved

Thanks for the PR!

Deployments, as required, will be available below:

Please create PRs in draft mode. Mark as ready to enable:

After merge, new images are deployed in:

Comment on lines +21 to +23
if (!isTscAdmin) {
return null;
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Non-blocking: I think you can remove this :), only the useEffect should be enough.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

useEffect only does redirect, this feels safer as nothing would render :D

@craigyu craigyu enabled auto-merge (squash) July 9, 2024 06:14
@craigyu craigyu disabled auto-merge July 9, 2024 06:20
@craigyu craigyu merged commit f947cbd into main Jul 9, 2024
21 checks passed
@craigyu craigyu deleted the fix/restrict-buttons-under-review-page branch July 9, 2024 06:20
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.

2 participants