FriendsOfFlarum / byobu

Well integrated, advanced private discussions for your Flarum forum.
https://discuss.flarum.org/d/4762-flagrow-by-bu-well-integrated-advanced-private-discussions
MIT License
54 stars 33 forks source link

"Block private discussions" in profile settings does not work #173

Closed rafaucau closed 1 year ago

rafaucau commented 2 years ago

Bug Report

Current Behavior When a user enables the "Block private discussions" option in the profile settings, this option disappears in one place but still exists in another which still allows you to write private messages to that user.

Steps to Reproduce

  1. Enable the "Block private discussions" option in your profile settings
  2. Create a private discussion with this user from another account

Expected Behavior As you can see in the video below, only one button disappears. The option to create private discussions should disappear completely. Additionally, this should be verified on the server side, because even if you hide the buttons, someone will be able to create a private discussion through the API.

Screenshots

https://user-images.githubusercontent.com/25438601/174478051-ff86057d-790f-4d8b-94a3-1d643f526de6.mp4

Environment