Przeglądaj źródła

增加权限过滤相关配置

zhou-hao 4 lat temu
rodzic
commit
b5875a9675

+ 5 - 0
jetlinks-standalone/src/main/resources/application.yml

@@ -99,6 +99,11 @@ hsweb:
   #        name: 超级管理员
   authorize:
     auto-parse: true
+  permission:
+    filter:
+      enabled: false # 设置为true开启权限过滤,赋权时,不能赋予比自己多的权限.
+      exclude-username: admin # admin用户不受上述限制
+      un-auth-strategy: ignore # error表示:发生越权时,抛出403错误. ignore表示会忽略越权的赋权.
   cache:
     type: redis
     redis: