Details
Description
When setting up ACL protection in CiviCRM, you can configure that specific users see only a specific mailing list group. This is ok in Contacts -> Manage Groups area where only the allowed group appears. However in CiviMail the user is allowed to see and send mailings to all groups.
The first github PR is valid and does the right thing. However there are more changes that need to be done for this patch to be complete. Specifically, we need to load the right user so that we can get the permissions as entered in the system. The changes need to be made in CRM/Utils/System/
{Joomla,WordPress}.php, specifically where we see loadUser (a function and an option).