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(jwt): Use isJwtFeatureEnabled the same way in all places. #15162

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

damencho
Copy link
Member

Fixes an issue where we were showing cc button for visitors that does not have features in the token.

Fixes an issue where we were showing cc button for visitors that does not have features in the token.
By default, that feature is disabled.
if (typeof features === 'undefined') {
return true;
return ifNoToken;
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering shouldn't we return ifNotInFeatures in this use case?

Copy link
Member Author

Choose a reason for hiding this comment

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

Well when there are no features, we want to respect isModerator, which we pass to ifNoToken.

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