1
0
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:
Hillel Coren 2016-09-21 21:22:30 +03:00
parent 9892c10be4
commit bcb5b7ca76

View File

@ -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;
}