Remove the option to check for updates from Sandstorm installations.

This commit is contained in:
James Cole 2018-06-09 06:07:40 +02:00
parent 4a548ac282
commit 8a15cb3a34
3 changed files with 5 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class VersionCheckEventHandler
/**
* @param RequestedVersionCheckStatus $event
*/
public function checkForUpdates(RequestedVersionCheckStatus $event)
public function checkForUpdates(RequestedVersionCheckStatus $event): void
{
// in Sandstorm, cannot check for updates:
$sandstorm = 1 === (int)getenv('SANDSTORM');

View File

@ -51,8 +51,9 @@ class HomeController extends Controller
{
$title = (string)trans('firefly.administration');
$mainTitleIcon = 'fa-hand-spock-o';
$sandstorm = 1 === (int)getenv('SANDSTORM');
return view('admin.index', compact('title', 'mainTitleIcon'));
return view('admin.index', compact('title', 'mainTitleIcon','sandstorm'));
}
/**

View File

@ -14,7 +14,9 @@
<ul>
<li><a href="{{ route('admin.configuration.index') }}">{{ 'firefly_instance_configuration'|_ }}</a></li>
<li><a href="{{ route('admin.links.index') }}">{{ 'journal_link_configuration'|_ }}</a></li>
{% if not sandstorm %}
<li><a href="{{ route('admin.update-check') }}">{{ 'update_check_title'|_ }}</a></li>
{% endif %}
</ul>
</div>
</div>