disable auto update from controller

This commit is contained in:
David Bomba 2025-09-20 12:03:34 +10:00
parent 5d80798034
commit e73348b69b
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class SelfUpdateController extends BaseController
set_time_limit(0);
define('STDIN', fopen('php://stdin', 'r'));
if (Ninja::isHosted()) {
if (Ninja::isHosted() || config('ninja.disable_auto_update')) {
return response()->json(['message' => ctrans('texts.self_update_not_available')], 403);
}