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