Skip to content

Commit

Permalink
Address #30 - Support Read-only User Rights privilege
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewPoppe committed Dec 16, 2023
1 parent d4a2b17 commit 3039db1
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);
Expand Down Expand Up @@ -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 = "";
Expand Down

0 comments on commit 3039db1

Please sign in to comment.