mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 22:14:36 -04:00
explicitly define the unwritable file
This commit is contained in:
parent
a16943986a
commit
dab7f5afba
@ -62,8 +62,7 @@ class SelfUpdateController extends BaseController
|
|||||||
return response()->json(['message' => ctrans('texts.self_update_not_available')], 403);
|
return response()->json(['message' => ctrans('texts.self_update_not_available')], 403);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!$this->testWritable())
|
$this->testWritable();
|
||||||
throw new FilePermissionsFailure('Cannot update system because files are not writable!');
|
|
||||||
|
|
||||||
// Check if new version is available
|
// Check if new version is available
|
||||||
//if($updater->source()->isNewVersionAvailable()) {
|
//if($updater->source()->isNewVersionAvailable()) {
|
||||||
@ -105,7 +104,8 @@ class SelfUpdateController extends BaseController
|
|||||||
// nlog($file->getPathname());
|
// nlog($file->getPathname());
|
||||||
|
|
||||||
if ($file->isFile() && ! $file->isWritable()) {
|
if ($file->isFile() && ! $file->isWritable()) {
|
||||||
throw new FilePermissionsFailure($file);
|
// throw new FilePermissionsFailure($file);
|
||||||
|
throw new FilePermissionsFailure("Cannot update system because {$file->getFileName()} is not writable");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user