Files
UNIT3D-Community-Edition/config/pruning.php
2024-05-23 13:58:29 +00:00

35 lines
1.1 KiB
PHP

<?php
declare(strict_types=1);
/**
* NOTICE OF LICENSE.
*
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D Community Edition
*
* @author HDVinnie <hdinnovations@protonmail.com>
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
*/
use App\Enums\UserGroup;
return [
/*
|--------------------------------------------------------------------------
| User Pruning
|--------------------------------------------------------------------------
| Users Account Must Be At least x Days Old
| Users Last Login At least x Days Ago
| Soft Delete Disabled Users After x Days (Pruned Group)
| Groups That Can Be Auto Disabled [DEFAULT] (User, PowerUser, SuperUser, Leech)
*/
'user_pruning' => false,
'account_age' => 90,
'last_login' => 90,
'soft_delete' => 120,
'group_ids' => [UserGroup::USER->value, UserGroup::POWERUSER->value, UserGroup::SUPERUSER->value, UserGroup::LEECH->value],
];