mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 01:59:19 +01:00
Admin: Exclude some apps from transfer list, even though they support the needed hook
This commit is contained in:
parent
d58b9e7e66
commit
6f160fe4b2
@ -353,6 +353,7 @@ class admin_account
|
||||
|
||||
$sel_options = array();
|
||||
$preserve = $content;
|
||||
static $blacklist_apps = ['preferences','notifications','esyncpro','api'];
|
||||
|
||||
// Get a count of entries owned by the user
|
||||
if(count($content['account_id']) == 1)
|
||||
@ -370,7 +371,7 @@ class admin_account
|
||||
{
|
||||
$entry = lang('Entries');
|
||||
}
|
||||
if (Api\Hooks::exists('deleteaccount', $app))
|
||||
if (Api\Hooks::exists('deleteaccount', $app) && !in_array($app, $blacklist_apps))
|
||||
{
|
||||
$content['delete_apps'][] = $app;
|
||||
$sel_options['delete_apps'][] = array(
|
||||
|
Loading…
Reference in New Issue
Block a user