diff --git a/4dev/database/table/edit_access.sql b/4dev/database/table/edit_access.sql index 71c279e9..22ea6485 100644 --- a/4dev/database/table/edit_access.sql +++ b/4dev/database/table/edit_access.sql @@ -11,8 +11,10 @@ CREATE TABLE edit_access ( name VARCHAR UNIQUE, description VARCHAR, color VARCHAR, - uid VARCHAR + uid VARCHAR, + enabled BOOLEAN DEFAULT 'true', + protected INT ) INHERITS (edit_generic) WITHOUT OIDS; DELETE FROM edit_access; -INSERT INTO edit_access (name) VALUES ('Admin Access'); +INSERT INTO edit_access (name, enabled, protected) VALUES ('Admin Access', 't', 1); diff --git a/www/admin/table_arrays/array_edit_access.inc b/www/admin/table_arrays/array_edit_access.inc index 653ab24f..ea33105a 100644 --- a/www/admin/table_arrays/array_edit_access.inc +++ b/www/admin/table_arrays/array_edit_access.inc @@ -28,6 +28,21 @@ $edit_access = array ( "error_check" => "custom", "error_regex" => "/[\dA-Fa-f]{6}/", "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", diff --git a/www/admin/table_arrays/array_edit_users.inc b/www/admin/table_arrays/array_edit_users.inc index 7c143a81..576f997d 100644 --- a/www/admin/table_arrays/array_edit_users.inc +++ b/www/admin/table_arrays/array_edit_users.inc @@ -29,6 +29,7 @@ $edit_users = array ( ) ), // 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 ( 'value' => $GLOBALS['password_change_interval'], 'output_name' => 'Password change interval', @@ -38,7 +39,6 @@ $edit_users = array ( 'size' => 5, // make it 5 chars long 'length' => 5 ), - // password reset force interval, if set, user needs to reset password after X time period "enabled" => array ( "value" => $GLOBALS["enabled"], "output_name" => "Enabled",