mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Only store html backups for plan users on hosted service
This commit is contained in:
parent
e18f388ae4
commit
f37715d751
@ -71,7 +71,7 @@ class ActivityRepository extends BaseRepository
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,10 @@ return [
|
||||
'preconfigured_install' => env('PRECONFIGURED_INSTALL', false),
|
||||
'update_secret' => env('UPDATE_SECRET', ''),
|
||||
// Settings used by invoiceninja.com
|
||||
|
||||
'disks' => [
|
||||
'backup' => env('BACKUP_DISK', 's3'),
|
||||
'document' => env('DOCUMENT_DISK', 's3'),
|
||||
],
|
||||
'terms_of_service_url' => [
|
||||
'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/'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user