浏览代码

补充更新admin关于execl的权限

qianming 3 年之前
父节点
当前提交
610a6ab7f7
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      report-core/src/main/resources/db/migration/V1.0.16__update_admin_authority.sql

+ 5 - 0
report-core/src/main/resources/db/migration/V1.0.16__update_admin_authority.sql

@@ -0,0 +1,5 @@
+-- 补充admin对于execl表格权限
+
+INSERT INTO `aj_report`.`access_role_authority`(`role_code`,`target`,`action`) SELECT "root","excelManage","insert" FROM DUAL WHERE NOT EXISTS(SELECT `role_code`,`target`,`action` FROM `aj_report`.`access_role_authority` WHERE `role_code`="root" AND `target`="excelManage" AND `action`="insert");
+
+INSERT INTO `aj_report`.`access_role_authority`(`role_code`,`target`,`action`) SELECT "root","excelManage","update" FROM DUAL WHERE NOT EXISTS(SELECT `role_code`,`target`,`action` FROM `aj_report`.`access_role_authority` WHERE `role_code`="root" AND `target`="excelManage" AND `action`="update");