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

chore: add support for project and environment in PermissionGuard #6008

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

nunogois
Copy link
Member

I noticed some manual hasAccess usages in permission guards due to the fact that PermissionGuard does not accept project and environment. This PR adds this support to PermissionGuard so we can adapt these hasAccess checks to use it instead, adding consistency and cleaning things up.

This PR does not include these adaptations however, it only adds the optional properties to the component. We can address these at a later point.

Copy link

vercel bot commented Jan 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 23, 2024 3:28pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Jan 23, 2024 3:28pm

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

LGTM!

@nunogois nunogois merged commit 7413a1e into main Jan 24, 2024
14 checks passed
@nunogois nunogois deleted the chore-permission-guard-project-env-support branch January 24, 2024 08: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