forked from DataLinkDC/dinky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] Fix the permission issue of the Kanban board (DataLinkDC#3679)
Signed-off-by: Zzm0809 <[email protected]> Co-authored-by: Zzm0809 <[email protected]>
- Loading branch information
Showing
7 changed files
with
139 additions
and
12 deletions.
There are no files selected for viewing
39 changes: 37 additions & 2 deletions
39
dinky-admin/src/main/resources/db/migration/h2/V20240729.1.1.0__release.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,39 @@ | ||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, | ||
`create_time`, `update_time`, `note`) | ||
VALUES (-1, '工作台', '/home', './Home', 'home', 'HomeOutlined', 'C', 0, 1, '2024-07-29 11:53:38', | ||
'2024-07-29 11:53:38', NULL); | ||
|
||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, | ||
`create_time`, `update_time`, `note`) | ||
VALUES (164, '仪表盘列表', '/dashboard/list', './Dashboard', 'dashboard:list', 'UnorderedListOutlined', 'F', 0, 167, | ||
'2024-07-29 15:37:46', '2024-07-29 15:37:46', NULL); | ||
|
||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, `create_time`, `update_time`, `note`) | ||
VALUES ( -1, '工作台', '/home', './Home', 'home', 'HomeOutlined', 'C', 0, 1, '2024-07-29 11:53:38', '2024-07-29 11:53:38', NULL); | ||
UPDATE `dinky_sys_menu` | ||
SET `path` = '/dashboard/list/add', | ||
perms='dashboard:list:add' | ||
WHERE `path` = '/dashboard/add'; | ||
UPDATE `dinky_sys_menu` | ||
SET `path` = '/dashboard/list/edit', | ||
perms='dashboard:list:edit' | ||
WHERE `path` = '/dashboard/edit'; | ||
UPDATE `dinky_sys_menu` | ||
SET `path` = '/dashboard/list/delete', | ||
perms='dashboard:list:delete' | ||
WHERE `path` = '/dashboard/delete'; | ||
UPDATE `dinky_sys_menu` | ||
SET `path` = '/dashboard/list/view', | ||
perms='dashboard:list:view' | ||
WHERE `path` = '/dashboard/view'; | ||
|
||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, | ||
`create_time`, `update_time`, `note`) | ||
VALUES (164, '看板布局', '/dashboard/dashboard-layout', './Dashboard/DashboardLayout', 'dashboard:dashboard-layout', | ||
'DashboardOutlined', 'F', 0, 168, '2024-07-29 16:16:45', '2024-07-29 16:17:28', NULL); | ||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, | ||
`create_time`, `update_time`, `note`) | ||
VALUES (164, '添加看板', '/dashboard/chart/add', NULL, 'dashboard:chart:add', 'AreaChartOutlined', 'F', 0, 167, | ||
'2024-06-21 10:53:33', '2024-06-21 10:53:33', NULL); | ||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, | ||
`create_time`, `update_time`, `note`) | ||
VALUES (164, '修改看板', '/dashboard/chart/edit', NULL, 'dashboard:chart:edit', 'BarChartOutlined', 'F', 0, 168, | ||
'2024-06-21 10:54:26', '2024-06-21 10:54:26', NULL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 41 additions & 3 deletions
44
dinky-admin/src/main/resources/db/migration/mysql/V20240729.1.1.0__release.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,46 @@ | ||
|
||
SET NAMES utf8mb4; | ||
SET FOREIGN_KEY_CHECKS = 0; | ||
|
||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, `create_time`, `update_time`, `note`) | ||
VALUES ( -1, '工作台', '/home', './Home', 'home', 'HomeOutlined', 'C', 0, 1, '2024-07-29 11:53:38', '2024-07-29 11:53:38', NULL); | ||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, | ||
`create_time`, `update_time`, `note`) | ||
VALUES (-1, '工作台', '/home', './Home', 'home', 'HomeOutlined', 'C', 0, 1, '2024-07-29 11:53:38', | ||
'2024-07-29 11:53:38', NULL); | ||
|
||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, | ||
`create_time`, `update_time`, `note`) | ||
VALUES (164, '仪表盘列表', '/dashboard/list', './Dashboard', 'dashboard:list', 'UnorderedListOutlined', 'F', 0, 167, | ||
'2024-07-29 15:37:46', '2024-07-29 15:37:46', NULL); | ||
|
||
UPDATE `dinky_sys_menu` | ||
SET `path` = '/dashboard/list/add', | ||
perms='dashboard:list:add' | ||
WHERE `path` = '/dashboard/add'; | ||
UPDATE `dinky_sys_menu` | ||
SET `path` = '/dashboard/list/edit', | ||
perms='dashboard:list:edit' | ||
WHERE `path` = '/dashboard/edit'; | ||
UPDATE `dinky_sys_menu` | ||
SET `path` = '/dashboard/list/delete', | ||
perms='dashboard:list:delete' | ||
WHERE `path` = '/dashboard/delete'; | ||
UPDATE `dinky_sys_menu` | ||
SET `path` = '/dashboard/list/view', | ||
perms='dashboard:list:view' | ||
WHERE `path` = '/dashboard/view'; | ||
|
||
|
||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, | ||
`create_time`, `update_time`, `note`) | ||
VALUES (164, '看板布局', '/dashboard/dashboard-layout', './Dashboard/DashboardLayout', 'dashboard:dashboard-layout', | ||
'DashboardOutlined', 'F', 0, 168, '2024-07-29 16:16:45', '2024-07-29 16:17:28', NULL); | ||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, | ||
`create_time`, `update_time`, `note`) | ||
VALUES (164, '添加看板', '/dashboard/chart/add', NULL, 'dashboard:chart:add', 'AreaChartOutlined', 'F', 0, 167, | ||
'2024-06-21 10:53:33', '2024-06-21 10:53:33', NULL); | ||
INSERT INTO `dinky_sys_menu` (`parent_id`, `name`, `path`, `component`, `perms`, `icon`, `type`, `display`, `order_num`, | ||
`create_time`, `update_time`, `note`) | ||
VALUES (164, '修改看板', '/dashboard/chart/edit', NULL, 'dashboard:chart:edit', 'BarChartOutlined', 'F', 0, 168, | ||
'2024-06-21 10:54:26', '2024-06-21 10:54:26', NULL); | ||
|
||
|
||
SET FOREIGN_KEY_CHECKS = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 36 additions & 2 deletions
38
dinky-admin/src/main/resources/db/migration/pgsql/V20240729.1.1.0__release.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,39 @@ | ||
INSERT INTO public.dinky_sys_menu (parent_id, name, path, component, perms, icon, type, display, order_num, create_time, | ||
update_time, note) | ||
VALUES (-1, '工作台', '/home', './Home', 'home', 'HomeOutlined', 'C', 0, 1, '2024-07-29 11:53:38', | ||
'2024-07-29 11:53:38', NULL); | ||
|
||
INSERT INTO public.dinky_sys_menu (parent_id, name, path, component, perms, icon, type, display, order_num, | ||
create_time, update_time, note) | ||
VALUES (164, '仪表盘列表', '/dashboard/list', './Dashboard', 'dashboard:list', 'UnorderedListOutlined', 'F', 0, 167, | ||
'2024-07-29 15:37:46', '2024-07-29 15:37:46', NULL); | ||
|
||
INSERT INTO public.dinky_sys_menu (parent_id, name, path, component, perms, icon, type, display, order_num, create_time, update_time, note) | ||
VALUES ( -1, '工作台', '/home', './Home', 'home', 'HomeOutlined', 'C', 0, 1, '2024-07-29 11:53:38', '2024-07-29 11:53:38', NULL); | ||
UPDATE public.dinky_sys_menu | ||
SET path = '/dashboard/list/add', | ||
perms='dashboard:list:add' | ||
WHERE path = '/dashboard/add'; | ||
UPDATE public.dinky_sys_menu | ||
SET path = '/dashboard/list/edit', | ||
perms='dashboard:list:edit' | ||
WHERE path = '/dashboard/edit'; | ||
UPDATE public.dinky_sys_menu | ||
SET path = '/dashboard/list/delete', | ||
perms='dashboard:list:delete' | ||
WHERE path = '/dashboard/delete'; | ||
UPDATE public.dinky_sys_menu | ||
SET path = '/dashboard/list/view', | ||
perms='dashboard:list:view' | ||
WHERE path = '/dashboard/view'; | ||
|
||
INSERT INTO public.dinky_sys_menu (parent_id, name, path, component, perms, icon, type, display, order_num, | ||
create_time, update_time, note) | ||
VALUES (164, '看板布局', '/dashboard/dashboard-layout', './Dashboard/DashboardLayout', 'dashboard:dashboard-layout', | ||
'DashboardOutlined', 'F', 0, 168, '2024-07-29 16:16:45', '2024-07-29 16:17:28', NULL); | ||
INSERT INTO public.dinky_sys_menu (parent_id, name, path, component, perms, icon, type, display, order_num, | ||
create_time, update_time, note) | ||
VALUES (164, '添加看板', '/dashboard/chart/add', NULL, 'dashboard:chart:add', 'AreaChartOutlined', 'F', 0, 167, | ||
'2024-06-21 10:53:33', '2024-06-21 10:53:33', NULL); | ||
INSERT INTO public.dinky_sys_menu (parent_id, name, path, component, perms, icon, type, display, order_num, | ||
create_time, update_time, note) | ||
VALUES (164, '修改看板', '/dashboard/chart/edit', NULL, 'dashboard:chart:edit', 'BarChartOutlined', 'F', 0, 168, | ||
'2024-06-21 10:54:26', '2024-06-21 10:54:26', NULL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters