forked from extern/egroupware
method to check if imap server (class) supports group ACL and switching groups on or off in ACL dialog
This commit is contained in:
parent
aa850d24fc
commit
1e936ed0d7
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user