Browse Source

代码生成创建按钮添加超级管理员权限

RuoYi 3 years ago
parent
commit
e8e149719a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ruoyi-generator/src/main/resources/templates/tool/gen/gen.html

+ 1 - 1
ruoyi-generator/src/main/resources/templates/tool/gen/gen.html

@@ -35,7 +35,7 @@
 			     <a class="btn btn-success multiple disabled" onclick="javascript:batchGenCode()" shiro:hasPermission="tool:gen:code">
 			        <i class="fa fa-download"></i> 生成
 			    </a>
-				<a class="btn btn-success" onclick="createTable()">
+				<a class="btn btn-success" onclick="createTable()" shiro:hasRole="admin">
 					<i class="fa fa-plus"></i> 创建
 				</a>
 				<a class="btn btn-info" onclick="importTable()">