This commit is contained in:
dzc committed 2025-04-03 15:34:25 +08:00
1 parent d94d5a2124
commit 10230486af
2 files changed
+7 -1

No files matched your search

@@ -11,6 +11,12 @@ public interface CommonRoleConstant {
// 管理员
String ROLE_ADMIN = "ROLE_ADMIN";
// 机关管理员
String JG_ADMIN = "JG_ADMIN";
// 财务管理员
String CANTEEN_FINANCE = "CANTEEN_FINANCE";
// 部门管理员
String DEPT_ADMIN = "DEPT_ADMIN";
@@ -218,7 +218,7 @@ public class HardManagerServiceImpl extends ServiceImpl<HardManagerMapper, HardM
String[] roles = userInfo.getRoleCodes();
if (roles.length == 0) return result;
List<String> roleList = Arrays.asList(roles);
if (roleList.contains(CommonRoleConstant.ROLE_ADMIN)) {
if (roleList.contains(CommonRoleConstant.ROLE_ADMIN) || roleList.contains(CommonRoleConstant.JG_ADMIN) || roleList.contains(CommonRoleConstant.CANTEEN_FINANCE)) {
result.setCanteenView(true);
result.setSupermarket(true);
return result;