Commit 53d99808 by 罗承锋

添加快递公司权限

parent 370ab164
...@@ -1007,7 +1007,7 @@ public class OrderController extends BaseController { ...@@ -1007,7 +1007,7 @@ public class OrderController extends BaseController {
} }
ShiroUser user = getShiroUser(); ShiroUser user = getShiroUser();
// 当前是否有数据权限 // 当前是否有数据权限
boolean hasDataPermission = user.getRoleNames().stream().anyMatch(data -> StringUtils.equalsAny(data, "活动上单员", "数据管理员", "超级管理员")); boolean hasDataPermission = user.getRoleNames().stream().anyMatch(data -> StringUtils.equalsAny(data, "活动上单员", "数据管理员", "超级管理员", "快递公司"));
if (!hasDataPermission) { if (!hasDataPermission) {
return ResponseData.error("无数据权限!"); return ResponseData.error("无数据权限!");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment