Merge pull request #11101 from dataease/pr@dev@fix_default_auth

fix(仪表板): 修复默认管理员角色没有创建仪表板权限问题
This commit is contained in:
王嘉豪 2024-07-23 11:49:32 +08:00 committed by GitHub
commit 73b8e91e7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,5 @@
delete from sys_auth_detail where auth_id in(select id from sys_auth where auth_target = 1 and auth_target_type ='role' and auth_source in ('panel_list','default_panel'));
delete from sys_auth where auth_target = 1 and auth_target_type ='role' and auth_source in ('panel_list','default_panel');
INSERT INTO `sys_auth` (`id`, `auth_source`, `auth_source_type`, `auth_target`, `auth_target_type`, `auth_time`, `auth_details`, `auth_user`, `update_time`, `copy_from`, `copy_id`) VALUES ('708f0fc5-5377-4cc2-9e3a-d7bd065a8810', 'default_panel', 'panel', '1', 'role', 1721702793282, NULL, 'admin', NULL, NULL, NULL);
INSERT INTO `sys_auth` (`id`, `auth_source`, `auth_source_type`, `auth_target`, `auth_target_type`, `auth_time`, `auth_details`, `auth_user`, `update_time`, `copy_from`, `copy_id`) VALUES ('ebce2615-0649-4c22-811b-1a3d11eb3b03', 'panel_list', 'panel', '1', 'role', 1721702794849, NULL, 'admin', NULL, NULL, NULL);
INSERT INTO `sys_auth_detail` (`id`, `auth_id`, `privilege_name`, `privilege_type`, `privilege_value`, `privilege_extend`, `remark`, `create_user`, `create_time`, `update_time`, `copy_from`, `copy_id`) VALUES ('c5880b63-489d-11ef-9fb9-0242ac110002', '708f0fc5-5377-4cc2-9e3a-d7bd065a8810', 'i18n_auth_export', 3, 1, 'export', '基础权限-导出', 'admin', 1721702793000, NULL, NULL, NULL);