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

T278420 #656

Merged
merged 1 commit into from Apr 29, 2021
Merged

T278420 #656

merged 1 commit into from Apr 29, 2021

Conversation

sahilgrewal8072
Copy link
Contributor

Changes have been made to hide red block message when the user is whitelisted

File TWLight/templates/home.html have been modified successfully for the above update

Bug:T278420

Copy link
Contributor

@suecarmol suecarmol left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution and apologies for the late review. I think this condition needs to be changed in order for this to get merged.

@@ -68,7 +68,7 @@ <h2 style="padding-bottom:20px;">{% trans "Library Bundle" %}
</li>
{% endfor %}
</ul>
{% if user.is_authenticated and not user.editor.wp_not_blocked %}
{% if user.is_authenticated and not user.editor.ignore_wp_blocks and not user.editor.wp_not_blocked %}
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I understand, the ignore_wp_blocks flag should be on to ignore the blocks, so this condition has to be:

Suggested change
{% if user.is_authenticated and not user.editor.ignore_wp_blocks and not user.editor.wp_not_blocked %}
{% if user.is_authenticated and user.editor.ignore_wp_blocks and not user.editor.wp_not_blocked %}

@Samwalton9 is this correct?

Copy link
Member

Choose a reason for hiding this comment

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

This line is a little confusing because the block field is not_blocked so we're looking at not not_blocked (blocked) to see if we should show this message. It decides whether we show the 'you are blocked message' and we only want to do that if we haven't ignored their WP blocks.

Copy link
Contributor

@suecarmol suecarmol left a comment

Choose a reason for hiding this comment

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

Based on @Samwalton9's comment, this is correct. Moving to merge

@suecarmol suecarmol merged commit 9e5da65 into WikipediaLibrary:master Apr 29, 2021
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.

None yet

3 participants