diff --git a/Renderer.php b/Renderer.php index f9bc00a..a9d0dab 100644 --- a/Renderer.php +++ b/Renderer.php @@ -291,7 +291,7 @@ private function parseRow(?array $data, bool $isUser) : array $row["design"] = $this->getCheckOrX($data["design"]); // User Rights - $row["user_rights"] = $this->getCheckOrX($data["user_rights"]); + $row["user_rights"] = $this->getUserRightsText($data["user_rights"]); // Data Access Groups $row["data_access_groups"] = $this->getCheckOrX($data["data_access_groups"]); @@ -504,6 +504,25 @@ private function getDataExportText($value) return [ $result ]; } + private function getUserRightsText($value) + { + $result = ""; + switch (strval($value)) { + case "0": + $result = "X"; + break; + case "1": + $result = "check"; + break; + case "2": + $result = "Read-only"; + break; + default: + $result = "X"; + } + return [ $result ]; + } + private function getDDEText($value) { $result = "";