method to check if imap server (class) supports group ACL and switching groups on or off in ACL dialog

This commit is contained in:
Ralf Becker 2014-02-28 17:00:53 +00:00
parent aa850d24fc
commit 1e936ed0d7
2 changed files with 3 additions and 1 deletions

View File

@ -178,10 +178,12 @@ class mail_acl
egw_framework::refresh_opener($msg, 'mail', 'update'); egw_framework::refresh_opener($msg, 'mail', 'update');
} }
} }
$readonlys = $sel_options = array();
$sel_options['acl'] = $this->aclRightsAbbrvs; $sel_options['acl'] = $this->aclRightsAbbrvs;
$readonlys['grid']['delete[1]'] = true; $readonlys['grid']['delete[1]'] = true;
$preserv ['mailbox'] = $content['mailbox']; $preserv ['mailbox'] = $content['mailbox'];
$content['msg'] = $msg; $content['msg'] = $msg;
$content['grid']['account_type'] = $this->mail_bo->icServer->supportsGroupAcl() ? 'both' : 'accounts';
$tmpl->exec('mail.mail_acl.edit', $content, $sel_options, $readonlys, $preserv,2); $tmpl->exec('mail.mail_acl.edit', $content, $sel_options, $readonlys, $preserv,2);
} }

View File

@ -42,7 +42,7 @@
<description value="Action"/> <description value="Action"/>
</row> </row>
<row class="row"> <row class="row">
<taglist-account id="${row}[acc_id]" allowFreeEntries="true" maxSelection="1" /> <taglist-account id="${row}[acc_id]" allowFreeEntries="true" maxSelection="1" account_type="@account_type" />
<menulist> <menulist>
<menupopup id="${row}[acl]" onchange="app.mail.acl_common_rights_selector"/> <menupopup id="${row}[acl]" onchange="app.mail.acl_common_rights_selector"/>
</menulist> </menulist>