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

View File

@@ -29,10 +29,7 @@
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('domain_setting_add') || permission_exists('domain_setting_edit')) {
//access granted
}
else {
if (!permission_exists('domain_setting_add') || !permission_exists('domain_setting_edit')) {
echo "access denied";
exit;
}

View File

@@ -29,10 +29,7 @@
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('domain_setting_view')) {
//access granted
}
else {
if (!permission_exists('domain_setting_view')) {
echo "access denied";
exit;
}

View File

@@ -42,6 +42,7 @@
/**
* declare public variables
*/
public $domain_uuid;
public $domain_uuid_target;
/**
@@ -59,7 +60,6 @@
/**
* declare private variables
*/
private $domain_uuid;
private $permission_prefix;
private $list_page;
private $table;