|
|
@ -195,9 +195,9 @@ public class ResourcesController extends BaseController{ |
|
|
|
) { |
|
|
|
) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
logger.info("login user {}, verfiy resource alias: {},resource type: {}", |
|
|
|
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) { |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error(VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR.getMsg(), 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()); |
|
|
|
return error(Status.VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR.getCode(), Status.VERIFY_RESOURCE_BY_NAME_AND_TYPE_ERROR.getMsg()); |
|
|
|