Browse Source

update verifyResourceName

pull/2/head
lgcareer 6 years ago
parent
commit
33be5ff9dd
  1. 4
      escheduler-api/src/main/java/cn/escheduler/api/controller/ResourcesController.java

4
escheduler-api/src/main/java/cn/escheduler/api/controller/ResourcesController.java

@ -195,9 +195,9 @@ public class ResourcesController extends BaseController{
) {
try {
logger.info("login user {}, verfiy resource alias: {},resource type: {}",
loginUser.getUserName(), alias);
loginUser.getUserName(), alias,type);
return resourceService.verifyResourceName(alias, type);
return resourceService.verifyResourceName(alias,type,loginUser);
} catch (Exception e) {
logger.error(VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR.getMsg(), e);
return error(Status.VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR.getCode(), Status.VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR.getMsg());

Loading…
Cancel
Save