Fixes for STDIN

This commit is contained in:
David Bomba 2020-06-04 21:42:45 +10:00
parent d7dab7a324
commit d26fe16443

View File

@ -62,6 +62,8 @@ class SelfUpdateController extends BaseController
*/
public function update()
{
define('STDIN',fopen("php://stdin","r"));
if (Ninja::isNinja()) {
return response()->json(['message' => 'Self update not available on this system.'], 403);
}