allow to call getAllIdentities for other users; used for Admin Calling eSync Prefs on Mail for other users

This commit is contained in:
Klaus Leithoff 2014-07-22 10:07:30 +00:00
parent ea6eb12cd4
commit cd702481af

View File

@ -157,7 +157,7 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send
*/ */
function getAvailableProfiles($params = null) function getAvailableProfiles($params = null)
{ {
$allIdentities = mail_bo::getAllIdentities(); $allIdentities = mail_bo::getAllIdentities(($params['account_id']?$params['account_id']:null));
$identities = array(); $identities = array();
if (!isset($params['setup'])) if (!isset($params['setup']))
{ {
@ -191,6 +191,7 @@ class mail_activesync implements activesync_plugin_write, activesync_plugin_send
*/ */
function settings($hook_data) function settings($hook_data)
{ {
//error_log(__METHOD__.__LINE__.array2string($hook_data));
$identities = array(); $identities = array();
if (!isset($hook_data['setup'])) if (!isset($hook_data['setup']))
{ {