This commit is contained in:
Alexey Berezhok
2024-03-19 22:05:27 +03:00
commit 346a50856b
1572 changed files with 182163 additions and 0 deletions

20
web/inc/policies.php Normal file
View File

@@ -0,0 +1,20 @@
<?php
if (
($_SESSION["userContext"] === "user" &&
$panel[$user]["SUSPENDED"] === "yes" &&
$_SESSION["POLICY_USER_VIEW_SUSPENDED"] === "yes") ||
($_SESSION["userContext"] === "admin" &&
$_SESSION["look"] === "admin" &&
$_SESSION["POLICY_SYSTEM_PROTECTED_ADMIN"] === "yes")
) {
$read_only = "true";
} else {
$read_only = "";
}
if ($read_only === "true") {
$display_mode = "disabled";
} else {
$display_mode = "";
}