forked from extern/egroupware
fix error "Class Accounts not found"
This commit is contained in:
parent
dc4a2465ff
commit
1cda58c9be
@ -1408,7 +1408,7 @@ class addressbook_ui extends addressbook_bo
|
|||||||
));
|
));
|
||||||
// this does NOT return!
|
// this does NOT return!
|
||||||
}
|
}
|
||||||
else // no mass delete of Api\Accounts
|
else // no mass delete of accounts
|
||||||
{
|
{
|
||||||
$Ok = false;
|
$Ok = false;
|
||||||
}
|
}
|
||||||
@ -1484,7 +1484,7 @@ class addressbook_ui extends addressbook_bo
|
|||||||
$action_msg = lang('changed type to %1', lang($this->content_types[$to_type]['name']));
|
$action_msg = lang('changed type to %1', lang($this->content_types[$to_type]['name']));
|
||||||
if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(Acl::EDIT,$contact)))
|
if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(Acl::EDIT,$contact)))
|
||||||
{
|
{
|
||||||
if (!$contact['owner']) // no change of Api\Accounts
|
if (!$contact['owner']) // no change of accounts
|
||||||
{
|
{
|
||||||
$Ok = false;
|
$Ok = false;
|
||||||
}
|
}
|
||||||
@ -1521,7 +1521,7 @@ class addressbook_ui extends addressbook_bo
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$action_msg = lang('shared into addressbook %1', Accounts::username($shared_with));
|
$action_msg = lang('shared into addressbook %1', Api\Accounts::username($shared_with));
|
||||||
if (($Ok = !!($contact = $this->read($id))))
|
if (($Ok = !!($contact = $this->read($id))))
|
||||||
{
|
{
|
||||||
$new_shared_with = [[
|
$new_shared_with = [[
|
||||||
@ -2586,10 +2586,10 @@ class addressbook_ui extends addressbook_bo
|
|||||||
foreach((array)$content['shared'] as $shared)
|
foreach((array)$content['shared'] as $shared)
|
||||||
{
|
{
|
||||||
$content['shared_options'][$shared['shared_id'].':'.$shared['shared_with'].':'.$shared['shared_by'].':'.$shared['shared_writable']] = [
|
$content['shared_options'][$shared['shared_id'].':'.$shared['shared_with'].':'.$shared['shared_by'].':'.$shared['shared_writable']] = [
|
||||||
'label' => Accounts::username($shared['shared_with']),
|
'label' => Api\Accounts::username($shared['shared_with']),
|
||||||
'title' => lang('%1 shared this contact on %2 with %3 %4',
|
'title' => lang('%1 shared this contact on %2 with %3 %4',
|
||||||
Accounts::username($shared['shared_by']), Api\DateTime::to($shared['shared_at']),
|
Api\Accounts::username($shared['shared_by']), Api\DateTime::to($shared['shared_at']),
|
||||||
Accounts::username($shared['shared_with']), $shared['shared_writable'] ? lang('writable') : lang('readonly')),
|
Api\Accounts::username($shared['shared_with']), $shared['shared_writable'] ? lang('writable') : lang('readonly')),
|
||||||
'icon' => $shared['shared_writable'] ? 'edit' : 'view',
|
'icon' => $shared['shared_writable'] ? 'edit' : 'view',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user