This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests
Martin Brennan d379edec8d
FIX: Clientside checks for personal_message_enabled_groups (#18691)
The clientside allowPersonalMessages function introduced
in e62e93f83a sometimes did not
work correctly, because the currentUser.groups property
only contained **visible** groups for the current user, which
could exclude auto groups that had their permissions set to
be owner-only visible.

It was unnecessary to add this anyway since we already have
can_send_private_messages on the CurrentUserSerializer. It's
better the backend does this calculation anyway. Use that
in the clientside code instead and get rid of allowPersonalMessages
2022-10-21 14:38:33 +10:00
..
acceptance FIX: Clientside checks for personal_message_enabled_groups (#18691) 2022-10-21 14:38:33 +10:00
addons/truth-helpers/integration/helpers DEV: adds includes helper to templates (#18259) 2022-09-15 14:20:37 +02:00
fixtures FIX: Clientside checks for personal_message_enabled_groups (#18691) 2022-10-21 14:38:33 +10:00
helpers DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00
integration FIX: Clientside checks for personal_message_enabled_groups (#18691) 2022-10-21 14:38:33 +10:00
unit DEV: Introduce a @debounce(delay) decorator (#18667) 2022-10-19 20:43:58 +02:00
index.html DEV: Load plugin CSS in tests (#18668) 2022-10-19 18:10:06 +01:00
setup-tests.js DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00
test-boot-ember-cli.js DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00