Przeglądaj źródła

fix 菜单列表

Administrator 4 lat temu
rodzic
commit
c5e0a8eef5

+ 4 - 0
boman-web-core/src/main/java/com/boman/web/core/utils/AuthUtils.java

@@ -83,6 +83,10 @@ public class AuthUtils {
      * @param errMsg    错误提示语
      */
     public static void containsFunction(String menuRole, String funcType, String errMsg) {
+        if (isEmpty(menuRole)) {
+            throw new NoSuchFunctionException("菜单权限未配置");
+
+        }
         if (!menuRole.contains(funcType)) {
             throw new NoSuchFunctionException(errMsg);
         }