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:
@@ -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]";
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user