Commit 85bb0c3f authored by mattwire's avatar mattwire
Browse files

Administrator has access to all from addresses

parent b77ccf25
...@@ -16,6 +16,10 @@ class CRM_Groupadmin_FromAddress { ...@@ -16,6 +16,10 @@ class CRM_Groupadmin_FromAddress {
* There is no group ID so it is filtered by ALL groups the user has admin for. * There is no group ID so it is filtered by ALL groups the user has admin for.
*/ */
public static function filterFromAddresses() { public static function filterFromAddresses() {
if (CRM_Core_Permission::check('administer CiviCRM')) {
return;
}
$settings = \Civi::resources()->getSettings(); $settings = \Civi::resources()->getSettings();
if (!isset($settings['crmMailing']['fromAddress'])) { if (!isset($settings['crmMailing']['fromAddress'])) {
return; return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment