From 5ff04f817653e05f508090fd4a41cb9832fc23fc Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 10 Jul 2025 17:20:38 +0800 Subject: [PATCH] + [misc] add default privileges of browse scene. --- db/update21.7.2.sql | 2 ++ db/zentao.sql | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/db/update21.7.2.sql b/db/update21.7.2.sql index 8841064d33..716203a5af 100644 --- a/db/update21.7.2.sql +++ b/db/update21.7.2.sql @@ -23,3 +23,5 @@ UPDATE `zt_workflowfield` SET `options` = (SELECT `id` FROM `zt_workflowdatasour UPDATE `zt_workflowfield` SET `options` = (SELECT `id` FROM `zt_workflowdatasource` WHERE `code` = 'charterCloseReason' LIMIT 1) WHERE `module` = 'charter' AND `field` = 'closedReason'; UPDATE `zt_workflowfield` SET `options` = (SELECT `id` FROM `zt_workflowdatasource` WHERE `code` = 'charterReviewResult' LIMIT 1) WHERE `module` = 'charter' AND `field` = 'reviewedResult'; UPDATE `zt_workflowfield` SET `options` = (SELECT `id` FROM `zt_workflowdatasource` WHERE `code` = 'charterReviewStatus' LIMIT 1) WHERE `module` = 'charter' AND `field` = 'reviewStatus'; + +INSERT INTO `zt_grouppriv` SELECT `group`, `module`, 'browsescene' AS `method` FROM `zt_grouppriv` WHERE `module` = 'testcase' AND `method` = 'browse'; \ No newline at end of file diff --git a/db/zentao.sql b/db/zentao.sql index 56c17bc1f5..0d83fc90e6 100755 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -4449,6 +4449,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (1, 'testcase', 'batchEdit'), (1, 'testcase', 'batchReview'), (1, 'testcase', 'browse'), +(1, 'testcase', 'browseScene'), (1, 'testcase', 'bugs'), (1, 'testcase', 'confirmChange'), (1, 'testcase', 'confirmLibcaseChange'), @@ -5394,6 +5395,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (2, 'task', 'start'), (2, 'task', 'view'), (2, 'testcase', 'browse'), +(2, 'testcase', 'browseScene'), (2, 'testcase', 'bugs'), (2, 'testcase', 'createBug'), (2, 'testcase', 'export'), @@ -6059,6 +6061,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (3, 'testcase', 'batchEdit'), (3, 'testcase', 'batchReview'), (3, 'testcase', 'browse'), +(3, 'testcase', 'browseScene'), (3, 'testcase', 'bugs'), (3, 'testcase', 'confirmChange'), (3, 'testcase', 'confirmLibcaseChange'), @@ -7066,6 +7069,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (4, 'testcase', 'batchEdit'), (4, 'testcase', 'batchReview'), (4, 'testcase', 'browse'), +(4, 'testcase', 'browseScene'), (4, 'testcase', 'bugs'), (4, 'testcase', 'confirmChange'), (4, 'testcase', 'confirmLibcaseChange'), @@ -8091,6 +8095,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (5, 'task', 'start'), (5, 'task', 'view'), (5, 'testcase', 'browse'), +(5, 'testcase', 'browseScene'), (5, 'testcase', 'bugs'), (5, 'testcase', 'createBug'), (5, 'testcase', 'export'), @@ -8874,6 +8879,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (6, 'task', 'start'), (6, 'task', 'view'), (6, 'testcase', 'browse'), +(6, 'testcase', 'browseScene'), (6, 'testcase', 'bugs'), (6, 'testcase', 'export'), (6, 'testcase', 'groupCase'), @@ -9729,6 +9735,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (7, 'task', 'start'), (7, 'task', 'view'), (7, 'testcase', 'browse'), +(7, 'testcase', 'browseScene'), (7, 'testcase', 'bugs'), (7, 'testcase', 'createBug'), (7, 'testcase', 'export'), @@ -10447,6 +10454,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (8, 'testcase', 'batchEdit'), (8, 'testcase', 'batchReview'), (8, 'testcase', 'browse'), +(8, 'testcase', 'browseScene'), (8, 'testcase', 'bugs'), (8, 'testcase', 'confirmChange'), (8, 'testcase', 'confirmLibcaseChange'), @@ -11326,6 +11334,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (9, 'task', 'start'), (9, 'task', 'view'), (9, 'testcase', 'browse'), +(9, 'testcase', 'browseScene'), (9, 'testcase', 'bugs'), (9, 'testcase', 'export'), (9, 'testcase', 'groupCase'), @@ -11829,6 +11838,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (10, 'task', 'start'), (10, 'task', 'view'), (10, 'testcase', 'browse'), +(10, 'testcase', 'browseScene'), (10, 'testcase', 'bugs'), (10, 'testcase', 'export'), (10, 'testcase', 'groupCase'), @@ -12302,6 +12312,7 @@ REPLACE INTO `zt_grouppriv` (`group`, `module`, `method`) VALUES (11, 'task', 'start'), (11, 'task', 'view'), (11, 'testcase', 'browse'), +(11, 'testcase', 'browseScene'), (11, 'testcase', 'bugs'), (11, 'testcase', 'export'), (11, 'testcase', 'groupCase'),