Commit bca3a84c by 何文超

bugfix

parent 7a6b52a9
...@@ -106,9 +106,6 @@ public class GoodsSelectorController { ...@@ -106,9 +106,6 @@ public class GoodsSelectorController {
if (goodsSelectorId == null) { if (goodsSelectorId == null) {
ServiceResponse<GoodsRightsSelectorDTO> serviceResponse = goodsRightsSelectorApiService.getGoodsRightsSelector(UserDetailUtils.getUserDetail().getUserResourceInfo().getGoodsResourceId(), ServiceResponse<GoodsRightsSelectorDTO> serviceResponse = goodsRightsSelectorApiService.getGoodsRightsSelector(UserDetailUtils.getUserDetail().getUserResourceInfo().getGoodsResourceId(),
Constant.TEST_ENTERPRISE_ID, UserDetailUtils.getUserDetail().getUserInfo().getSuperAdmin()); Constant.TEST_ENTERPRISE_ID, UserDetailUtils.getUserDetail().getUserInfo().getSuperAdmin());
if (UserDetailUtils.getUserDetail().getUserResourceInfo().getGoodsResourceId() == null) {
return RestResponse.failure(ErrorCodeEnums.MAll_ERR.getCode(), "没有权限");
}
if (serviceResponse.getResult() == null) { if (serviceResponse.getResult() == null) {
return RestResponse.failure(ErrorCodeEnums.MAll_ERR.getCode(), "没有权限"); return RestResponse.failure(ErrorCodeEnums.MAll_ERR.getCode(), "没有权限");
} }
......
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