Only store html backups for plan users on hosted service

This commit is contained in:
David Bomba 2022-11-07 10:33:39 +11:00
parent e18f388ae4
commit f37715d751
2 changed files with 5 additions and 2 deletions

View File

@ -71,7 +71,7 @@ class ActivityRepository extends BaseRepository
*/ */
public function createBackup($entity, $activity) public function createBackup($entity, $activity)
{ {
if ($entity instanceof User || $entity->company->is_disabled) { if ($entity instanceof User || $entity->company->is_disabled || $entity->company?->account->isFreeHostedClient()) {
return; return;
} }

View File

@ -43,7 +43,10 @@ return [
'preconfigured_install' => env('PRECONFIGURED_INSTALL', false), 'preconfigured_install' => env('PRECONFIGURED_INSTALL', false),
'update_secret' => env('UPDATE_SECRET', ''), 'update_secret' => env('UPDATE_SECRET', ''),
// Settings used by invoiceninja.com // Settings used by invoiceninja.com
'disks' => [
'backup' => env('BACKUP_DISK', 's3'),
'document' => env('DOCUMENT_DISK', 's3'),
],
'terms_of_service_url' => [ 'terms_of_service_url' => [
'hosted' => env('TERMS_OF_SERVICE_URL', 'https://www.invoiceninja.com/terms/'), 'hosted' => env('TERMS_OF_SERVICE_URL', 'https://www.invoiceninja.com/terms/'),
'selfhost' => env('TERMS_OF_SERVICE_URL', 'https://www.invoiceninja.com/self-hosting-terms-service/'), 'selfhost' => env('TERMS_OF_SERVICE_URL', 'https://www.invoiceninja.com/self-hosting-terms-service/'),