mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
* addressbook: distributionlists, allow to add any seen contact to an available (and editable) distributionlist
This commit is contained in:
parent
9990fe45d6
commit
d50d0f3d0a
@ -469,7 +469,7 @@ class addressbook_ui extends addressbook_bo
|
||||
),
|
||||
'group' => $group,
|
||||
);
|
||||
if (($add_lists = $this->get_lists(EGW_ACL_EDIT))) // do we have distribution lists?
|
||||
if (($add_lists = $this->get_lists(EGW_ACL_EDIT))) // do we have distribution lists?, and are we allowed to edit them
|
||||
{
|
||||
$actions['lists']['children'] += array(
|
||||
'to_list' => array(
|
||||
@ -477,7 +477,8 @@ class addressbook_ui extends addressbook_bo
|
||||
'children' => $add_lists,
|
||||
'prefix' => 'to_list_',
|
||||
'icon' => 'foldertree_nolines_plus',
|
||||
'disableClass' => 'rowNoEdit',
|
||||
'enabled' => ($add_lists?true:false), // if there are editable lists, allow to add a contact to one of them,
|
||||
//'disableClass' => 'rowNoEdit', // wether you are allowed to edit the contact or not, as you alter a list, not the contact
|
||||
),
|
||||
'remove_from_list' => array(
|
||||
'caption' => 'Remove from distribution list',
|
||||
|
Loading…
Reference in New Issue
Block a user