mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 17:44:32 -04:00
Prevent using update for ninja instance
This commit is contained in:
parent
9892c10be4
commit
bcb5b7ca76
@ -2,8 +2,9 @@
|
|||||||
|
|
||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use Codedge\Updater\UpdaterManager;
|
use Utils;
|
||||||
use Redirect;
|
use Redirect;
|
||||||
|
use Codedge\Updater\UpdaterManager;
|
||||||
|
|
||||||
class SelfUpdateController extends BaseController
|
class SelfUpdateController extends BaseController
|
||||||
{
|
{
|
||||||
@ -19,6 +20,10 @@ class SelfUpdateController extends BaseController
|
|||||||
*/
|
*/
|
||||||
public function __construct(UpdaterManager $updater)
|
public function __construct(UpdaterManager $updater)
|
||||||
{
|
{
|
||||||
|
if (Utils::isNinjaProd()) {
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
$this->updater = $updater;
|
$this->updater = $updater;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user