Add additional_acl column to edit_access table

To be able to have special ACL (json) for edit edit access table too
This commit is contained in:
Clemens Schwaighofer
2019-09-03 09:39:12 +09:00
parent 9ec19f5940
commit 605ea06bf0
5 changed files with 14 additions and 4 deletions

View File

@@ -411,6 +411,7 @@ if ($form->my_page_name == 'edit_order') {
$elements[] = $form->formCreateElement("description");
// add name/value list here
$elements[] = $form->formCreateElementListTable("edit_access_data");
$elements[] = $form->formCreateElement("additional_acl");
break;
default:
print "[No valid page definition given]";

View File

@@ -49,7 +49,15 @@ $edit_access = array (
"1" => "Yes",
"0" => "No"
)
)
),
"additional_acl" => array (
"value" => $GLOBALS["additional_acl"],
"output_name" => "Additional ACL (as JSON)",
"type" => "textarea",
"error_check" => "json",
"rows" => 10,
"cols" => 60
),
),
"table_name" => "edit_access",
"load_query" => "SELECT edit_access_id, name FROM edit_access ORDER BY name",