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 an issue that allowed users to create private discussions with users who are blocking them #175

Merged
merged 6 commits into from
Jul 31, 2022

Conversation

rafaucau
Copy link
Contributor

@rafaucau rafaucau commented Jul 22, 2022

Fixes #173

Changes proposed in this pull request:
This PR fixes an issue that allowed users to create private discussions with users who are blocking them.

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes.

@rafaucau rafaucau changed the title Fix/privacy settings Fixing an issue that allowed users to create private discussions with users who block them Jul 22, 2022
@rafaucau rafaucau changed the title Fixing an issue that allowed users to create private discussions with users who block them Fix an issue that allowed users to create private discussions with users who block them Jul 22, 2022
@rafaucau rafaucau changed the title Fix an issue that allowed users to create private discussions with users who block them Fix anissue that allowed users to create private discussions with users who block them Jul 22, 2022
@rafaucau rafaucau changed the title Fix anissue that allowed users to create private discussions with users who block them Fix an issue that allowed users to create private discussions with users who block them Jul 22, 2022
@rafaucau rafaucau changed the title Fix an issue that allowed users to create private discussions with users who block them Fix an issue that allowed users to create private discussions with users who are blocking them Jul 22, 2022
Copy link
Member

@davwheat davwheat left a comment

Choose a reason for hiding this comment

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

I think this is fine.

I see some other things which I want to question in the code, but nothing that wasn't already there before this PR, so I'm happy to get this merged.

Nowadays for our JS, we tend to prefer named functions rather than arrow ones. This is because it makes it easier to debug when issues occur (since DevTools will show the function name rather than "anonymous", for example).

js/src/forum/helpers/canStartPrivateDiscussion.js Outdated Show resolved Hide resolved
rafaucau and others added 2 commits July 31, 2022 22:10
@rafaucau
Copy link
Contributor Author

@davwheat Ok, I changed this function

@davwheat davwheat merged commit 23dcf93 into FriendsOfFlarum:master Jul 31, 2022
@rafaucau rafaucau deleted the fix/privacy_settings branch July 31, 2022 20:43
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.

"Block private discussions" in profile settings does not work
2 participants