1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Minor fixes for self updater

This commit is contained in:
David Bomba 2021-05-05 08:28:55 +10:00
parent fe337f353f
commit 430e31c1ad
3 changed files with 56 additions and 2 deletions

View File

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

View File

@ -30,6 +30,7 @@
"ext-dom": "*", "ext-dom": "*",
"ext-json": "*", "ext-json": "*",
"ext-libxml": "*", "ext-libxml": "*",
"asm/php-ansible": "dev-master",
"authorizenet/authorizenet": "^2.0", "authorizenet/authorizenet": "^2.0",
"bacon/bacon-qr-code": "^2.0", "bacon/bacon-qr-code": "^2.0",
"beganovich/snappdf": "^1.0", "beganovich/snappdf": "^1.0",

55
composer.lock generated
View File

@ -4,8 +4,60 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "f01381d3d00f0bd84acbda078ad1b99e", "content-hash": "38a79899673526624db4d62a76dd9a5e",
"packages": [ "packages": [
{
"name": "asm/php-ansible",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/maschmann/php-ansible.git",
"reference": "4f2145cad264fd9f800baf6d3a79dd43fd8009db"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/maschmann/php-ansible/zipball/4f2145cad264fd9f800baf6d3a79dd43fd8009db",
"reference": "4f2145cad264fd9f800baf6d3a79dd43fd8009db",
"shasum": ""
},
"require": {
"php": "^7.1.0|>8.0.0",
"psr/log": "^1.1",
"symfony/process": "^4.0|^5.0"
},
"require-dev": {
"mikey179/vfsstream": "^1.6",
"phpunit/phpunit": "^9.0"
},
"default-branch": true,
"type": "library",
"autoload": {
"psr-4": {
"Asm\\": "Asm"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Marc Aschmann",
"email": "maschmann@gmail.com"
}
],
"description": "A PHP wrapper for Ansible.",
"homepage": "https://github.com/maschmann/php-ansible",
"keywords": [
"ansible",
"php"
],
"support": {
"issues": "https://github.com/maschmann/php-ansible/issues",
"source": "https://github.com/maschmann/php-ansible/tree/master"
},
"time": "2021-03-02T18:27:29+00:00"
},
{ {
"name": "authorizenet/authorizenet", "name": "authorizenet/authorizenet",
"version": "2.0.2", "version": "2.0.2",
@ -14247,6 +14299,7 @@
"aliases": [], "aliases": [],
"minimum-stability": "dev", "minimum-stability": "dev",
"stability-flags": { "stability-flags": {
"asm/php-ansible": 20,
"webpatser/laravel-countries": 20 "webpatser/laravel-countries": 20
}, },
"prefer-stable": true, "prefer-stable": true,