-
Notifications
You must be signed in to change notification settings - Fork 142
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
Added custom role option for verified users #494
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -38,6 +38,8 @@ | |||
<div>Guests</div> | |||
{:else if role === 'any'} | |||
<div>Any</div> | |||
{:else if !role.startsWith('user') && !role.startsWith('team') } | |||
<div>Users/Verfified</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be {role}
instead of Users/Verfified
since we want to accept whatever the user sets as custom role
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be
{role}
instead ofUsers/Verfified
since we want to accept whatever the user sets as custom role
Yeah, makes sense. Made changes
@@ -38,6 +38,8 @@ | |||
<div>Guests</div> | |||
{:else if role === 'any'} | |||
<div>Any</div> | |||
{:else if !role.startsWith('user') && !role.startsWith('team') } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True... if the custom role starts with users or teams it doesn't work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a {:else if role.startsWith('user') || role.startsWith('team') } can solve?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a {:else if role.startsWith('user') || role.startsWith('team') } can solve?
sure if that covers all the cases.
Also, looks like the linter fails. |
{:else if role.startsWith('user') || role.startsWith('team')} | ||
<div>{role}</div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this PR do?
Adds a condition for verified users
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)
Related PRs and Issues
Have you read the Contributing Guidelines on issues?
Yes