jonssonyan 2 жил өмнө
parent
commit
b22d951129
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      install_script.sh

+ 1 - 1
install_script.sh

@@ -80,7 +80,7 @@ init_var() {
   trojan_panel_core_latest_version="v2.0.0"
 
   # SQL
-  sql_131_200="alter table \`system\` add template_config varchar(512) default '' not null comment '模板设置' after email_config;update \`system\` set template_config = \"{\\\"systemName\\\":\\\"Trojan Panel\\\"}\" where name = \"trojan-panel\";"
+  sql_131_200="alter table \`system\` add template_config varchar(512) default '' not null comment '模板设置' after email_config;update \`system\` set template_config = \"{\\\"systemName\\\":\\\"Trojan Panel\\\"}\" where name = \"trojan-panel\";insert into \`casbin_rule\` values ('p','sysadmin','/api/nodeServer/nodeServerState','GET','','','');insert into \`casbin_rule\` values ('p','user','/api/node/selectNodeById','GET','','','');"
 }
 
 echo_content() {