Update check permisisons

This commit is contained in:
markjcrane
2025-11-02 00:22:57 -06:00
parent 422fee7f23
commit b0eabca1f6
243 changed files with 299 additions and 1008 deletions
+5 -8
View File
@@ -29,14 +29,11 @@ Con Portions created by the Initial Developer are Copyright (C) 2008-2025
require_once dirname(__DIR__, 2) . "/resources/require.php";
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('system_view_info')
|| permission_exists('system_view_cpu')
|| permission_exists('system_view_hdd')
|| permission_exists('system_view_ram')
|| permission_exists('system_view_backup')) {
//access granted
}
else {
if (!permission_exists('system_view_info')
|| !permission_exists('system_view_cpu')
|| !permission_exists('system_view_hdd')
|| !permission_exists('system_view_ram')
|| !permission_exists('system_view_backup')) {
echo "access denied";
exit;
}