Update edit access and edit user
edit access gets enabled + protected flag + updates for edit edit user table array part gets documentation update
This commit is contained in:
@@ -11,8 +11,10 @@ CREATE TABLE edit_access (
|
|||||||
name VARCHAR UNIQUE,
|
name VARCHAR UNIQUE,
|
||||||
description VARCHAR,
|
description VARCHAR,
|
||||||
color VARCHAR,
|
color VARCHAR,
|
||||||
uid VARCHAR
|
uid VARCHAR,
|
||||||
|
enabled BOOLEAN DEFAULT 'true',
|
||||||
|
protected INT
|
||||||
) INHERITS (edit_generic) WITHOUT OIDS;
|
) INHERITS (edit_generic) WITHOUT OIDS;
|
||||||
|
|
||||||
DELETE FROM edit_access;
|
DELETE FROM edit_access;
|
||||||
INSERT INTO edit_access (name) VALUES ('Admin Access');
|
INSERT INTO edit_access (name, enabled, protected) VALUES ('Admin Access', 't', 1);
|
||||||
|
|||||||
@@ -28,6 +28,21 @@ $edit_access = array (
|
|||||||
"error_check" => "custom",
|
"error_check" => "custom",
|
||||||
"error_regex" => "/[\dA-Fa-f]{6}/",
|
"error_regex" => "/[\dA-Fa-f]{6}/",
|
||||||
"error_example" => "F6A544"
|
"error_example" => "F6A544"
|
||||||
|
),
|
||||||
|
"enabled" => array (
|
||||||
|
"value" => $GLOBALS["enabled"],
|
||||||
|
"output_name" => "Enabled",
|
||||||
|
"type" => "binary",
|
||||||
|
"int" => 1,
|
||||||
|
"element_list" => array (
|
||||||
|
"1" => "Yes",
|
||||||
|
"0" => "No"
|
||||||
|
)
|
||||||
|
),
|
||||||
|
// planned delete lock flag
|
||||||
|
"protected" => array (
|
||||||
|
"value" => $GLOBALS["protected"],
|
||||||
|
"int" => 1
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
"table_name" => "edit_access",
|
"table_name" => "edit_access",
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ $edit_users = array (
|
|||||||
)
|
)
|
||||||
),
|
),
|
||||||
// password date when first insert and password is set, needs special field with connection to password
|
// password date when first insert and password is set, needs special field with connection to password
|
||||||
|
// password reset force interval, if set, user needs to reset password after X time period
|
||||||
'password_change_interval' => array (
|
'password_change_interval' => array (
|
||||||
'value' => $GLOBALS['password_change_interval'],
|
'value' => $GLOBALS['password_change_interval'],
|
||||||
'output_name' => 'Password change interval',
|
'output_name' => 'Password change interval',
|
||||||
@@ -38,7 +39,6 @@ $edit_users = array (
|
|||||||
'size' => 5, // make it 5 chars long
|
'size' => 5, // make it 5 chars long
|
||||||
'length' => 5
|
'length' => 5
|
||||||
),
|
),
|
||||||
// password reset force interval, if set, user needs to reset password after X time period
|
|
||||||
"enabled" => array (
|
"enabled" => array (
|
||||||
"value" => $GLOBALS["enabled"],
|
"value" => $GLOBALS["enabled"],
|
||||||
"output_name" => "Enabled",
|
"output_name" => "Enabled",
|
||||||
|
|||||||
Reference in New Issue
Block a user