Skip to content

Commit

Permalink
Hide health check permission if is_docker is true
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jul 1, 2024
1 parent b98c43e commit f9ab2a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/ui/app/dialogs/health_check_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class _HealthCheckDialogState extends State<HealthCheckDialog> {
Widget build(BuildContext context) {
final store = StoreProvider.of<AppState>(context);
final state = store.state;
final account = state.account;
final localization = AppLocalization.of(context);
final webPhpVersion =
_parseVersion(_response?.phpVersion.currentPHPVersion ?? '');
Expand Down Expand Up @@ -173,15 +174,16 @@ class _HealthCheckDialogState extends State<HealthCheckDialog> {
),
*/
if (_response!.filePermissions != 'Ok' &&
!state.account.disableAutoUpdate)
!account.disableAutoUpdate &&
!account.isDocker)
_HealthListTile(
title: 'Invalid File Permissions',
isValid: false,
subtitle: _response!.filePermissions,
url: '$kDocsUrl/self-host-installation/#file-permissions',
),
/*
if (!state.account.isDocker) ...[
if (!account.isDocker) ...[
if (!_response.openBasedir)
_HealthListTile(
title: 'Open Basedir',
Expand All @@ -197,7 +199,7 @@ class _HealthCheckDialogState extends State<HealthCheckDialog> {
),
],
*/
if (!state.account.isDocker &&
if (!account.isDocker &&
phpMemoryLimitDouble! > 100 &&
phpMemoryLimitDouble < 1024)
_HealthListTile(
Expand Down

0 comments on commit f9ab2a3

Please sign in to comment.