From 8458bbb0eda57ad3a655c803e82755d6d38b7cf0 Mon Sep 17 00:00:00 2001 From: "Jokob @NetAlertX" <96159884+jokob-sk@users.noreply.github.com> Date: Sun, 11 Jan 2026 03:26:45 +0000 Subject: [PATCH] FE: remove unused checkPermissions function and its call in settings --- front/php/server/util.php | 19 ------------------- front/settings.php | 2 -- 2 files changed, 21 deletions(-) diff --git a/front/php/server/util.php b/front/php/server/util.php index 2663d8af..ba62f937 100755 --- a/front/php/server/util.php +++ b/front/php/server/util.php @@ -278,23 +278,4 @@ function encode_single_quotes ($val) { return $result; } -// ------------------------------------------------------------------------------------------- -function checkPermissions($files) -{ - foreach ($files as $file) - { - - // // make sure the file ownership is correct - // chown($file, 'nginx'); - // chgrp($file, 'www-data'); - - // check access to database - if(file_exists($file) != 1) - { - $message = "File '".$file."' not found or inaccessible. Correct file permissions, create one yourself or generate a new one in 'Settings' by clicking the 'Save' button."; - displayMessage($message, TRUE); - } - } -} - ?> diff --git a/front/settings.php b/front/settings.php index 0bc0a8b2..173bf437 100755 --- a/front/settings.php +++ b/front/settings.php @@ -24,8 +24,6 @@ if (!file_exists($confPath) && file_exists('../config/app.conf')) { $confPath = '../config/app.conf'; } -checkPermissions([$dbPath, $confPath]); - // get settings from the API json file // path to your JSON file