added cache folder to debug permission check

This commit is contained in:
HB9HIL
2024-07-10 17:35:48 +02:00
parent 5e6361762e
commit 4f13f4d339
2 changed files with 15 additions and 0 deletions

View File

@@ -42,6 +42,10 @@ class Debug extends CI_Controller
$backup_folder = $this->permissions->is_really_writable('backup');
$data['backup_folder'] = $backup_folder;
// Test writing to cache folder
$cache_folder = $this->permissions->is_really_writable('application/cache');
$data['cache_folder'] = $cache_folder;
// Test writing to updates folder
$updates_folder = $this->permissions->is_really_writable('updates');
$data['updates_folder'] = $updates_folder;

View File

@@ -105,6 +105,17 @@
</td>
</tr>
<tr>
<td>/cache</td>
<td>
<?php if ($cache_folder == true) { ?>
<span class="badge text-bg-success"><?= __("Success"); ?></span>
<?php } else { ?>
<span class="badge text-bg-danger"><?= __("Failed"); ?></span>
<?php } ?>
</td>
</tr>
<tr>
<td>/updates</td>
<td>