Prevent using update for ninja instance
This commit is contained in:
parent
9892c10be4
commit
bcb5b7ca76
1 changed files with 6 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue