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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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/'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user