Added new profile bits to control the access to the visual console and the network maps
This commit is contained in:
parent
f6405cb8e0
commit
a06f8eee09
|
@ -70,3 +70,17 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES ('post_process_custom_values',
|
|||
ALTER TABLE `tnetwork_map` ADD COLUMN `id_tag` int(11) DEFAULT 0;
|
||||
ALTER TABLE `tnetwork_map` ADD COLUMN `store_group` int(11) DEFAULT 0;
|
||||
UPDATE `tnetwork_map` SET `store_group` = `id_group`;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tperfil`
|
||||
-- ---------------------------------------------------------------------
|
||||
ALTER TABLE `tperfil` ADD COLUMN `map_view` tinyint(1) NOT NULL DEFAULT 0;
|
||||
ALTER TABLE `tperfil` ADD COLUMN `map_edit` tinyint(1) NOT NULL DEFAULT 0;
|
||||
ALTER TABLE `tperfil` ADD COLUMN `map_management` tinyint(1) NOT NULL DEFAULT 0;
|
||||
ALTER TABLE `tperfil` ADD COLUMN `vconsole_view` tinyint(1) NOT NULL DEFAULT 0;
|
||||
ALTER TABLE `tperfil` ADD COLUMN `vconsole_edit` tinyint(1) NOT NULL DEFAULT 0;
|
||||
ALTER TABLE `tperfil` ADD COLUMN `vconsole_management` tinyint(1) NOT NULL DEFAULT 0;
|
||||
|
||||
UPDATE `tperfil` SET `map_view` = 1, `vconsole_view` = 1 WHERE `report_view` = 1;
|
||||
UPDATE `tperfil` SET `map_edit` = 1, `vconsole_edit` = 1 WHERE `report_edit` = 1;
|
||||
UPDATE `tperfil` SET `map_management` = 1, `vconsole_management` = 1 WHERE `report_management` = 1;
|
||||
|
|
|
@ -70,3 +70,17 @@ INSERT INTO tconfig (token, value) VALUES ('post_process_custom_values', '{"0.00
|
|||
ALTER TABLE tnetwork_map ADD COLUMN id_tag NUMBER(11, 0) DEFAULT 0;
|
||||
ALTER TABLE tnetwork_map ADD COLUMN store_group NUMBER(11, 0) DEFAULT 0;
|
||||
UPDATE tnetwork_map SET store_group = id_group;
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tperfil`
|
||||
-- ---------------------------------------------------------------------
|
||||
ALTER TABLE tperfil ADD COLUMN map_view NUMBER(1, 0) DEFAULT 0 NOT NULL;
|
||||
ALTER TABLE tperfil ADD COLUMN map_edit NUMBER(1, 0) DEFAULT 0 NOT NULL;
|
||||
ALTER TABLE tperfil ADD COLUMN map_management NUMBER(1, 0) DEFAULT 0 NOT NULL;
|
||||
ALTER TABLE tperfil ADD COLUMN vconsole_view NUMBER(1, 0) DEFAULT 0 NOT NULL;
|
||||
ALTER TABLE tperfil ADD COLUMN vconsole_edit NUMBER(1, 0) DEFAULT 0 NOT NULL;
|
||||
ALTER TABLE tperfil ADD COLUMN vconsole_management NUMBER(1, 0) DEFAULT 0 NOT NULL;
|
||||
|
||||
UPDATE tperfil SET map_view = 1, vconsole_view = 1 WHERE report_view = 1;
|
||||
UPDATE tperfil SET map_edit = 1, vconsole_edit = 1 WHERE report_edit = 1;
|
||||
UPDATE tperfil SET map_management = 1, vconsole_management = 1 WHERE report_management = 1;
|
||||
|
|
|
@ -68,3 +68,17 @@ INSERT INTO "tconfig" ("token", "value") VALUES ('post_process_custom_values', '
|
|||
ALTER TABLE "tnetwork_map" ADD COLUMN "id_tag" INTEGER DEFAULT 0;
|
||||
ALTER TABLE "tnetwork_map" ADD COLUMN "store_group" INTEGER DEFAULT 0;
|
||||
UPDATE "tnetwork_map" SET "store_group" = "id_group";
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
-- Table `tperfil`
|
||||
-- ---------------------------------------------------------------------
|
||||
ALTER TABLE "tperfil" ADD COLUMN "map_view" SMALLINT NOT NULL DEFAULT 0;
|
||||
ALTER TABLE "tperfil" ADD COLUMN "map_edit" SMALLINT NOT NULL DEFAULT 0;
|
||||
ALTER TABLE "tperfil" ADD COLUMN "map_management" SMALLINT NOT NULL DEFAULT 0;
|
||||
ALTER TABLE "tperfil" ADD COLUMN "vconsole_view" SMALLINT NOT NULL DEFAULT 0;
|
||||
ALTER TABLE "tperfil" ADD COLUMN "vconsole_edit" SMALLINT NOT NULL DEFAULT 0;
|
||||
ALTER TABLE "tperfil" ADD COLUMN "vconsole_management" SMALLINT NOT NULL DEFAULT 0;
|
||||
|
||||
UPDATE "tperfil" SET "map_view" = 1, "vconsole_view" = 1 WHERE "report_view" = 1;
|
||||
UPDATE "tperfil" SET "map_edit" = 1, "vconsole_edit" = 1 WHERE "report_edit" = 1;
|
||||
UPDATE "tperfil" SET "map_management" = 1, "vconsole_management" = 1 WHERE "report_management" = 1;
|
||||
|
|
|
@ -839,7 +839,13 @@ CREATE TABLE tperfil (
|
|||
event_view NUMBER(1, 0) default 0 NOT NULL,
|
||||
event_edit NUMBER(1, 0) default 0 NOT NULL,
|
||||
event_management NUMBER(1, 0) default 0 NOT NULL,
|
||||
agent_disable NUMBER(1, 0) default 0 NOT NULL
|
||||
agent_disable NUMBER(1, 0) default 0 NOT NULL,
|
||||
map_view NUMBER(1, 0) default 0 NOT NULL,
|
||||
map_edit NUMBER(1, 0) default 0 NOT NULL,
|
||||
map_management NUMBER(1, 0) default 0 NOT NULL,
|
||||
vconsole_view NUMBER(1, 0) default 0 NOT NULL,
|
||||
vconsole_edit NUMBER(1, 0) default 0 NOT NULL,
|
||||
vconsole_management NUMBER(1, 0) default 0 NOT NULL
|
||||
);
|
||||
|
||||
CREATE SEQUENCE tperfil_s INCREMENT BY 1 START WITH 1;
|
||||
|
|
|
@ -738,7 +738,13 @@ CREATE TABLE "tperfil" (
|
|||
"event_view" SMALLINT NOT NULL default 0,
|
||||
"event_edit" SMALLINT NOT NULL default 0,
|
||||
"event_management" SMALLINT NOT NULL default 0,
|
||||
"agent_disable" SMALLINT NOT NULL default 0
|
||||
"agent_disable" SMALLINT NOT NULL default 0,
|
||||
"map_view" SMALLINT NOT NULL default 0,
|
||||
"map_edit" SMALLINT NOT NULL default 0,
|
||||
"map_management" SMALLINT NOT NULL default 0,
|
||||
"vconsole_view" SMALLINT NOT NULL default 0,
|
||||
"vconsole_edit" SMALLINT NOT NULL default 0,
|
||||
"vconsole_management" SMALLINT NOT NULL default 0
|
||||
);
|
||||
|
||||
-- ---------------------------------------------------------------------
|
||||
|
|
|
@ -799,6 +799,12 @@ CREATE TABLE IF NOT EXISTS `tperfil` (
|
|||
`event_edit` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`event_management` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`agent_disable` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`map_view` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`map_edit` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`map_management` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`vconsole_view` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`vconsole_edit` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`vconsole_management` tinyint(1) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id_perfil`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
|
Loading…
Reference in New Issue