From cd702481aff9c5975160a346015e67f78ca7d323 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 22 Jul 2014 10:07:30 +0000 Subject: [PATCH] allow to call getAllIdentities for other users; used for Admin Calling eSync Prefs on Mail for other users --- mail/inc/class.mail_activesync.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mail/inc/class.mail_activesync.inc.php b/mail/inc/class.mail_activesync.inc.php index 95b6c82f5c..b1fbab710e 100644 --- a/mail/inc/class.mail_activesync.inc.php +++ b/mail/inc/class.mail_activesync.inc.php @@ -157,7 +157,7 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send */ function getAvailableProfiles($params = null) { - $allIdentities = mail_bo::getAllIdentities(); + $allIdentities = mail_bo::getAllIdentities(($params['account_id']?$params['account_id']:null)); $identities = array(); if (!isset($params['setup'])) { @@ -191,6 +191,7 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send */ function settings($hook_data) { + //error_log(__METHOD__.__LINE__.array2string($hook_data)); $identities = array(); if (!isset($hook_data['setup'])) {