11
This commit is contained in:
1 parent
d94d5a2124
commit
10230486af
2 files changed
+7
-1
No files matched your search
+6
@@ -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";
|
||||
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user