Details
Description
http://issues.civicrm.org/jira/browse/CRM-5491
I am using the above patch to add the permissions to civiMail as well, which only sets the permissions for "Send Mail". I haven't added any new permissions, but use the one for the above patch for this, "use multiple from email addresses", thus making this patch dependent on the other.
When the user permissions are not set, a user can only send from his own - primary - email, if the permissions are set, then she can send from all the FROM addresses or the own email.
diff CRM/Mailing/Form/Upload.php