Browse Source

Allow branch versions

pull/722/head
James Cole 10 months ago
parent
commit
d95bc858f3
  1. 7
      app/Console/HaveAccess.php

7
app/Console/HaveAccess.php

@ -75,8 +75,13 @@ trait HaveAccess
$this->warn('You are connected to a development version of Firefly III.');
}
if (str_starts_with($reportedVersion, 'branch')) {
$this->line(sprintf('Connected to Firefly III %s', $reportedVersion));
$this->warn('You are connected to a branch version of Firefly III.');
}
$compare = version_compare($reportedVersion, config('importer.minimum_version'));
if (-1 === $compare && !str_starts_with($reportedVersion, 'develop')) {
if (-1 === $compare && !str_starts_with($reportedVersion, 'develop') && !str_starts_with($reportedVersion, 'branch')) {
$this->error(sprintf('The data importer cannot communicate with Firefly III v%s. Please upgrade to Firefly III v%s or higher.', $reportedVersion, config('importer.minimum_version')));
return false;

Loading…
Cancel
Save