mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for logos in production
This commit is contained in:
parent
5b80e32fa7
commit
185958ba2c
@ -1094,7 +1094,7 @@ class AccountController extends BaseController
|
||||
$path = Input::file('logo')->getRealPath();
|
||||
|
||||
$disk = $account->getLogoDisk();
|
||||
if ($account->hasLogo()) {
|
||||
if ($account->hasLogo() && ! Utils::isNinjaProd()) {
|
||||
$disk->delete($account->logo);
|
||||
}
|
||||
|
||||
@ -1287,7 +1287,9 @@ class AccountController extends BaseController
|
||||
{
|
||||
$account = Auth::user()->account;
|
||||
if ($account->hasLogo()) {
|
||||
if ( ! Utils::isNinjaProd()) {
|
||||
$account->getLogoDisk()->delete($account->logo);
|
||||
}
|
||||
|
||||
$account->logo = null;
|
||||
$account->logo_size = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user