Skip to content

Commit 8458bbb

Browse files
committed
FE: remove unused checkPermissions function and its call in settings
1 parent 2bdf25c commit 8458bbb

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

front/php/server/util.php

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -278,23 +278,4 @@ function encode_single_quotes ($val) {
278278
return $result;
279279
}
280280

281-
// -------------------------------------------------------------------------------------------
282-
function checkPermissions($files)
283-
{
284-
foreach ($files as $file)
285-
{
286-
287-
// // make sure the file ownership is correct
288-
// chown($file, 'nginx');
289-
// chgrp($file, 'www-data');
290-
291-
// check access to database
292-
if(file_exists($file) != 1)
293-
{
294-
$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.";
295-
displayMessage($message, TRUE);
296-
}
297-
}
298-
}
299-
300281
?>

front/settings.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424
$confPath = '../config/app.conf';
2525
}
2626

27-
checkPermissions([$dbPath, $confPath]);
28-
2927
// get settings from the API json file
3028

3129
// path to your JSON file

0 commit comments

Comments
 (0)