From a30c46df80227c3a235dab8f63c7ac9de68e9f24 Mon Sep 17 00:00:00 2001 From: kosmosr Date: Mon, 16 Jun 2025 21:33:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=B8=B8=E9=87=8F=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E7=A1=AC=E7=BC=96=E7=A0=81=E5=AD=97=E7=AC=A6=E4=B8=B2?= =?UTF-8?q?=20-=20=E5=9C=A8=20getMenuPermission=20=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=B8=AD=E4=BD=BF=E7=94=A8=20Constants.ALL=5FPERMISSION?= =?UTF-8?q?=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/framework/web/service/SysPermissionService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPermissionService.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPermissionService.java index 8fa7e4855..cf60fca11 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPermissionService.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/service/SysPermissionService.java @@ -3,6 +3,8 @@ package com.ruoyi.framework.web.service; import java.util.HashSet; import java.util.List; import java.util.Set; + +import com.ruoyi.common.constant.Constants; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import org.springframework.util.CollectionUtils; @@ -60,7 +62,7 @@ public class SysPermissionService // 管理员拥有所有权限 if (user.isAdmin()) { - perms.add("*:*:*"); + perms.add(Constants.ALL_PERMISSION); } else {