mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Admin: Exclude some apps from transfer list, even though they support the needed hook
This commit is contained in:
parent
2612d75e03
commit
3173cbb103
@ -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